mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-19 04:30:37 +01:00
dispatcher: set G_LOG_DOMAIN to "nm-dispatcher"
Originally, we would define G_LOG_DOMAIN via CFLAGS arguments. Since commit341b6e0704('all: change G_LOG_DOMAIN to "nm"') we would instead set it in source and uniformly define it as "nm". The reasons are that most parts of our source should not use g_log() directly, and there is an aim to avoid special CFLAGS to simplify the build setup. However, dispatcher indeed uses g_log() for logging, so the value there is important. Fix that, but this time by setting the define in source not via CFLAGS. Fixes:341b6e0704('all: change G_LOG_DOMAIN to "nm"')
This commit is contained in:
parent
008302aa4e
commit
db773fd54e
2 changed files with 5 additions and 1 deletions
|
|
@ -12,7 +12,9 @@
|
|||
#error Dont define NETWORKMANAGER_COMPILATION
|
||||
#endif
|
||||
|
||||
#define G_LOG_DOMAIN "nm"
|
||||
#ifndef G_LOG_DOMAIN
|
||||
#define G_LOG_DOMAIN "nm"
|
||||
#endif
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@
|
|||
* Copyright (C) 2008 - 2012 Red Hat, Inc.
|
||||
*/
|
||||
|
||||
#define G_LOG_DOMAIN "nm-dispatcher"
|
||||
|
||||
#include "libnm-client-aux-extern/nm-default-client.h"
|
||||
|
||||
#include <syslog.h>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue