summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2022-11-09 16:17:55 +0100
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-11-16 13:43:54 -0800
commite515f4b6e25c971c47ab79e9cbdfa17119bbde23 (patch)
tree39b2a84fdd46c5f8723b52ffe941c7df89343054 /plugins
parent1ebbfee345171cb4d38ae55501849a5671d2df4a (diff)
downloadbluez-e515f4b6e25c971c47ab79e9cbdfa17119bbde23.tar.gz
hostname: Add '' around printed strings
Otherwise we can't see whether the string is nul, or empty.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/hostname.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/hostname.c b/plugins/hostname.c
index 1a9513adb..14b6450b5 100644
--- a/plugins/hostname.c
+++ b/plugins/hostname.c
@@ -128,7 +128,7 @@ static void property_changed(GDBusProxy *proxy, const char *name,
dbus_message_iter_get_basic(iter, &str);
- DBG("pretty hostname: %s", str);
+ DBG("pretty hostname: '%s'", str);
g_free(pretty_hostname);
pretty_hostname = g_strdup(str);
@@ -146,7 +146,7 @@ static void property_changed(GDBusProxy *proxy, const char *name,
dbus_message_iter_get_basic(iter, &str);
- DBG("static hostname: %s", str);
+ DBG("static hostname: '%s'", str);
g_free(static_hostname);
static_hostname = g_strdup(str);
@@ -165,7 +165,7 @@ static void property_changed(GDBusProxy *proxy, const char *name,
dbus_message_iter_get_basic(iter, &str);
- DBG("chassis: %s", str);
+ DBG("chassis: '%s'", str);
for (i = 0; chassis_table[i].chassis; i++) {
if (strcmp(chassis_table[i].chassis, str))