diff options
author | Thomas Haller <thaller@redhat.com> | 2013-07-27 12:43:53 +0200 |
---|---|---|
committer | Dan Williams <dcbw@redhat.com> | 2013-08-06 13:48:02 -0500 |
commit | a853b3bd23aa4a65cc4583bd7d2a5eb219754cc0 (patch) | |
tree | 05bad6af0c5214bad91c40d8c7188ff13e505248 | |
parent | 4861161bd4ae8562e30ad085175aba8451f58d57 (diff) | |
download | NetworkManager-a853b3bd23aa4a65cc4583bd7d2a5eb219754cc0.tar.gz |
core: minor code cleanup to use preprocessor constants
Use preprocessor constants in nm_logging_all_domains_to_string instead
of hard coded values for the special logging domain names.
Signed-off-by: Thomas Haller <thaller@redhat.com>
-rw-r--r-- | src/logging/nm-logging.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/logging/nm-logging.c b/src/logging/nm-logging.c index 1f45c5591f..c79e7d7069 100644 --- a/src/logging/nm-logging.c +++ b/src/logging/nm-logging.c @@ -260,16 +260,16 @@ nm_logging_all_domains_to_string (void) if (G_UNLIKELY (!str)) { const LogDesc *diter; - str = g_string_new ("DEFAULT"); + str = g_string_new (LOGD_DEFAULT_STRING); for (diter = &domain_descs[0]; diter->name; diter++) { g_string_append_c (str, ','); g_string_append (str, diter->name); if (diter->num == LOGD_DHCP6) - g_string_append (str, ",DHCP"); + g_string_append (str, "," LOGD_DHCP_STRING); else if (diter->num == LOGD_IP6) - g_string_append (str, ",IP"); + g_string_append (str, "," LOGD_IP_STRING); } - g_string_append (str, ",ALL"); + g_string_append (str, "," LOGD_ALL_STRING); } return str->str; |