Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp667418rwb; Wed, 9 Nov 2022 07:19:51 -0800 (PST) X-Google-Smtp-Source: AMsMyM5gd86XbYDdPpdDCWC9kdOPpfH5pv85dD1lXge/LypYU9mhe3pKdx+6sZF6YMDYNZrDSSUs X-Received: by 2002:a17:907:7f11:b0:7ae:32b7:eb53 with SMTP id qf17-20020a1709077f1100b007ae32b7eb53mr26466027ejc.5.1668007191487; Wed, 09 Nov 2022 07:19:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668007191; cv=none; d=google.com; s=arc-20160816; b=yOT8qpvIhfZCtp5kkdVzO4iclwQJLT+2IvS0Hde48eF2ES72D05nOzsErc4Q0N5Nr9 oLW9zxX0f3WN5/7q/BpqV4SpzLnFgaygJaHXdzaYmK6qbDVuflAktg1NiuLpHNVVxpnv nsjm4GUKqOdkHh+F3nPiB04LT2nEUu7pwHV9wU8sxyIswmnR4HMK4qzp4UbQjUlmfQAn fKVUDbUKkMuweyqgWdidLaidc1jXHB5y3vPTuE3Qpl/acn3S8Znq76Div0gp/NjzZSyR U2VaZi1vUWR3wkULFqL5aul9pohD4VAtMjDCjNs/UCClZNx898a8Kx3taDPGupJqGdwa EH2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from; bh=Pb1C7hSEiloEkwQSadNiFpYiNnbGMkFhqPth/HdUWeQ=; b=NXtF76ijJI1hNHvfiADCPe4G5v9A30lE8f4TbUEDEOVXrpZvNwMz+FkMzUhKorj3Tt IjDgHynU8+UxWovpqDZU7dCAVxfaWmZXiwWLoSms0XEh/vmuQITahXA03uKK5qNbNPaf XHix3XBuLVmaXzTimts54VCu40mSZGpwIo3XWODVqm2mlgsfm2KvQ1RQSKqzm3KFWSzJ +VGaTrrOjUHlq3Wc8U/LMmQeAQbDdOgRuPyjj5kRhgNWC/5s5rKPdjFEpU27+PTzkXf/ 3/0Ut1ovCeAoSz5AzyHygI2HDmZq7fbcFpqCDja0Hki8U/ss7As+i8l5uGwThpY+PT1g hjYw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k6-20020a170906128600b0077f92be81adsi11979459ejb.212.2022.11.09.07.19.01; Wed, 09 Nov 2022 07:19:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231934AbiKIPSH (ORCPT + 99 others); Wed, 9 Nov 2022 10:18:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231918AbiKIPSG (ORCPT ); Wed, 9 Nov 2022 10:18:06 -0500 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E242B1CFD5 for ; Wed, 9 Nov 2022 07:18:05 -0800 (PST) Received: (Authenticated sender: hadess@hadess.net) by mail.gandi.net (Postfix) with ESMTPSA id 338171C000F for ; Wed, 9 Nov 2022 15:18:03 +0000 (UTC) From: Bastien Nocera To: linux-bluetooth@vger.kernel.org Subject: [BlueZ 1/2] hostname: Add '' around printed strings Date: Wed, 9 Nov 2022 16:17:55 +0100 Message-Id: <20221109151756.96673-1-hadess@hadess.net> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Otherwise we can't see whether the string is nul, or empty. --- plugins/hostname.c | 6 +++--- 1 file 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)) -- 2.37.3