dispatcher: set G_LOG_DOMAIN to "nm-dispatcher"

Originally, we would define G_LOG_DOMAIN via CFLAGS arguments.
Since commit 341b6e0704 ('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:
Thomas Haller 2021-03-18 16:49:40 +01:00
parent 008302aa4e
commit db773fd54e
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728
2 changed files with 5 additions and 1 deletions

View file

@ -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
/*****************************************************************************/

View file

@ -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>