diff mbox series

[BlueZ,1/2] hostname: Add '' around printed strings

Message ID 20221109151756.96673-1-hadess@hadess.net
State New
Headers show
Series [BlueZ,1/2] hostname: Add '' around printed strings | expand

Commit Message

Bastien Nocera Nov. 9, 2022, 3:17 p.m. UTC
Otherwise we can't see whether the string is nul, or empty.
---
 plugins/hostname.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

patchwork-bot+bluetooth@kernel.org Nov. 16, 2022, 10 p.m. UTC | #1
Hello:

This series was applied to bluetooth/bluez.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:

On Wed,  9 Nov 2022 16:17:55 +0100 you wrote:
> Otherwise we can't see whether the string is nul, or empty.
> ---
>  plugins/hostname.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

Here is the summary with links:
  - [BlueZ,1/2] hostname: Add '' around printed strings
    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=e515f4b6e25c
  - [BlueZ,2/2] hostname: Fallback to transient hostname
    (no matching commit)

You are awesome, thank you!
diff mbox series

Patch

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