Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp233158pxu; Wed, 2 Dec 2020 21:12:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJxu7b1SswkcK6Y0UQ+n4JmFYoUo331YWwBGLU6Ki9u6x4gr0l28iWgxJOd1WGvdx5g5lOC4 X-Received: by 2002:a17:906:4348:: with SMTP id z8mr1049910ejm.119.1606972330684; Wed, 02 Dec 2020 21:12:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606972330; cv=none; d=google.com; s=arc-20160816; b=bRxb+nAOfZ5o+cP1CpFS4p9874Hhrm137ElHmOBZcOM1fL7rEQKpxvwme+HWsNHLUa TYneO2sVjAstnZ2EZFCYxXcjiguO8hbU2cplG0WX30zoxkI+hbhNvEzK0ExWAaIuKgCc jjlCrDWFKOc72mEUegEV+z5RP8DTlX42AEd+vweMmL0kzaYV3cSkwLbj7LZq1yRV/ccY D7Wnpj3BELCZJptWEnBdVM0gHvqv/fHtD2r71HqgPrqzsG+GdX7hVjiRMJ1OgxPN5GHx 4dhuN8gxMw60R8/xhxGhnlANx00lNeU7R2WEs8TG1k8+uzJ9LWcJ5lDp1g5yBAnvSAwJ IbZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Vcgip+IsWiqFz8idQOoOeSoBXwyE7NXCtezIH07uilw=; b=Iu3aI/oI4HUPFVqt0xGPTqIRckrna3uNsaNHnt7WH1rnvgo3cw9arjF2I22m7hWYnb lyMXtHdMbQnolfJWYLbsQ7NgUwhuTuwTZeDHXObl16ec+AwGcJe+4kdgZ7qC5iUoePZd zsAYu8S5q7OYaXhkNeJFYV+1yFqXX6UI0P+awaEKdVkBsqlPaNtPFG+DnHvT2sA9i4kJ NJGefgyjkbWqkAlvdC0s8WXbvatK3UjUSVZWuoSXxjsHWOBOD5mOYq6ihMj5oAfAipeP Wmo871AEL1FMR9mUpJ9AdcEQHiHOExNVH6tMR5S6mQ20MZTia+dqLca4a3UUV2AxEnG+ 8ZNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="jh/+C1cu"; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q19si321492edv.85.2020.12.02.21.11.45; Wed, 02 Dec 2020 21:12:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="jh/+C1cu"; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727042AbgLCFLb (ORCPT + 99 others); Thu, 3 Dec 2020 00:11:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727038AbgLCFLa (ORCPT ); Thu, 3 Dec 2020 00:11:30 -0500 Received: from mail-oi1-x244.google.com (mail-oi1-x244.google.com [IPv6:2607:f8b0:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B166DC061A4F for ; Wed, 2 Dec 2020 21:10:50 -0800 (PST) Received: by mail-oi1-x244.google.com with SMTP id k26so995495oiw.0 for ; Wed, 02 Dec 2020 21:10:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Vcgip+IsWiqFz8idQOoOeSoBXwyE7NXCtezIH07uilw=; b=jh/+C1cuOHkGej+3EDJsceDHDryRZzCQ8kco+GxXamR5ZtVQ26eplMKdnw21gVY2fC gL9igaFwhhmXbgogLzF07eQYJnmuEJlHg/omU2+iAD9zhAiuNCZpsM4Rc3kujkwwcW5X rlZT8uqyMirATAdYYEH1m4BX8wzvdmoCoisYHz9AFr595BOGb90fPuhAC6T1QMtP2hX8 E6kdkeqrqrXA1TWTRaOZPc1PQgp3ekKk254tacox6PotWlP9J5z1+X6EWFLqzMhkLiW1 WFSMwTtlDOCSAGOzeQWGu+p5d0XjpjIYQxFswMfHBdjOPgi+AXRT9QhYKwcesO51rkzU EVAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Vcgip+IsWiqFz8idQOoOeSoBXwyE7NXCtezIH07uilw=; b=nJoKcuZe2QGJQ1OG+UsIAKH8r784Kss6Z2lLuob5t6Z2cK3V0AKN7LaYbaVzbuQMob rE4VY42yx7EfrHl0k2FmWbXRbeIJvQC5EAf66+oGLnN6PeWt3lF4iMx2YrRngUeEewU9 hYFAlNTJ/VdOr1k21ZulUtWRZtmuP6Z3I9Otc/1MVa2vNkhcqVgavGmH0AOrXvveEi9M NmK1Ea8JZlYdkJfQOxP/skWYA8yY4jtDEDta/1/qm6t3dGeADtTc0i0noUHMzi7vvqTC ryKzpfez1Th7oSJicWNgAHxxlBInOXE0AGQ2I/upnjqPkGzHHBIYKTHtHnkaMT7vDTYm ganA== X-Gm-Message-State: AOAM533GoV/5VBCAFcZWPeYzJqnhIf+T7j+gtULyl0egHQJHyMLNrYFs LovHh29YPnyHBsFmNB2I5t5eV8WF245UpoPSAzw= X-Received: by 2002:a05:6808:1d8:: with SMTP id x24mr843118oic.64.1606972250036; Wed, 02 Dec 2020 21:10:50 -0800 (PST) MIME-Version: 1.0 References: <20201125121844.bluez.v2.1.I4dd1c737d5f8806fe2aa99b8c2d8154fe58871ed@changeid> In-Reply-To: From: Luiz Augusto von Dentz Date: Wed, 2 Dec 2020 21:10:39 -0800 Message-ID: Subject: Re: [bluez PATCH v2] adv_monitor: Update log messages To: Manish Mandlik Cc: Marcel Holtmann , linux-bluetooth , ChromeOS Bluetooth Upstreaming , Miao-chen Chou , Alain Michaud Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Manish, On Wed, Dec 2, 2020 at 7:55 PM Manish Mandlik wrote: > > Friendly reminder to review this patch. > > Thanks, > Manish. > > > On Wed, Nov 25, 2020 at 12:18 PM Manish Mandlik wrote: >> >> Update log messages to avoid breaking of user-visible log strings >> to make it easy to grep for them. >> >> Reviewed-by: mcchou@chromium.org >> Reviewed-by: alainm@chromium.org >> Signed-off-by: Manish Mandlik >> --- >> >> Changes in v2: >> - Fix merge conflicts >> >> src/adv_monitor.c | 58 +++++++++++++++++++++++++++-------------------- >> 1 file changed, 34 insertions(+), 24 deletions(-) >> >> diff --git a/src/adv_monitor.c b/src/adv_monitor.c >> index fc058dbf1..767c1c82d 100644 >> --- a/src/adv_monitor.c >> +++ b/src/adv_monitor.c >> @@ -318,8 +318,9 @@ static void app_disconnect_cb(DBusConnection *conn, void *user_data) >> return; >> } >> >> - btd_info(app->manager->adapter_id, "Adv Monitor app %s disconnected " >> - "from D-Bus", app->owner); >> + btd_info(app->manager->adapter_id, >> + "Adv Monitor app %s disconnected from D-Bus", >> + app->owner); >> >> if (queue_remove(app->manager->apps, app)) { >> queue_foreach(app->monitors, monitor_state_released, NULL); >> @@ -396,8 +397,9 @@ static bool parse_monitor_type(struct adv_monitor *monitor, const char *path) >> uint16_t adapter_id = monitor->app->manager->adapter_id; >> >> if (!g_dbus_proxy_get_property(monitor->proxy, "Type", &iter)) { >> - btd_error(adapter_id, "Failed to retrieve property Type from " >> - "the Adv Monitor at path %s", path); >> + btd_error(adapter_id, >> + "Failed to retrieve property Type from the " >> + "Adv Monitor at path %s", path); >> return false; >> } >> >> @@ -414,8 +416,9 @@ static bool parse_monitor_type(struct adv_monitor *monitor, const char *path) >> } >> >> failed: >> - btd_error(adapter_id, "Invalid argument of property Type of the Adv " >> - "Monitor at path %s", path); >> + btd_error(adapter_id, >> + "Invalid argument of property Type of the Adv Monitor " >> + "at path %s", path); >> >> return false; >> } >> @@ -515,8 +518,9 @@ failed: >> monitor->high_rssi_timeout = ADV_MONITOR_UNSET_TIMER; >> monitor->low_rssi_timeout = ADV_MONITOR_UNSET_TIMER; >> >> - btd_error(adapter_id, "Invalid argument of property " >> - "RSSIThresholdsAndTimers of the Adv Monitor at path %s", >> + btd_error(adapter_id, >> + "Invalid argument of property RSSIThresholdsAndTimers " >> + "of the Adv Monitor at path %s", >> path); >> >> return false; >> @@ -531,8 +535,9 @@ static bool parse_patterns(struct adv_monitor *monitor, const char *path) >> uint16_t adapter_id = monitor->app->manager->adapter_id; >> >> if (!g_dbus_proxy_get_property(monitor->proxy, "Patterns", &array)) { >> - btd_error(adapter_id, "Failed to retrieve property Patterns " >> - "from the Adv Monitor at path %s", path); >> + btd_error(adapter_id, >> + "Failed to retrieve property Patterns from the " >> + "Adv Monitor at path %s", path); >> return false; >> } >> >> @@ -640,8 +645,9 @@ static void add_adv_patterns_monitor_cb(uint8_t status, uint16_t length, >> uint16_t adapter_id = monitor->app->manager->adapter_id; >> >> if (status != MGMT_STATUS_SUCCESS || !param) { >> - btd_error(adapter_id, "Failed to Add Adv Patterns Monitor " >> - "with status 0x%02x", status); >> + btd_error(adapter_id, >> + "Failed to Add Adv Patterns Monitor with status" >> + " 0x%02x", status); >> monitor->state = MONITOR_STATE_FAILED; >> monitor_destroy(monitor); >> return; >> @@ -696,15 +702,17 @@ static void monitor_proxy_added_cb(GDBusProxy *proxy, void *user_data) >> } >> >> if (queue_find(app->monitors, monitor_match, proxy)) { >> - btd_error(adapter_id, "Adv Monitor proxy already exists with " >> - "path %s", path); >> + btd_error(adapter_id, >> + "Adv Monitor proxy already exists with path %s", >> + path); >> return; >> } >> >> monitor = monitor_new(app, proxy); >> if (!monitor) { >> - btd_error(adapter_id, "Failed to allocate an Adv Monitor for " >> - "the object at %s", path); >> + btd_error(adapter_id, >> + "Failed to allocate an Adv Monitor for the " >> + "object at %s", path); >> return; >> } >> >> @@ -882,8 +890,9 @@ static DBusMessage *unregister_monitor(DBusConnection *conn, >> queue_remove(manager->apps, app); >> app_destroy(app); >> >> - btd_info(manager->adapter_id, "Path %s removed along with Adv Monitor " >> - "app %s", match.path, match.owner); >> + btd_info(manager->adapter_id, >> + "Path %s removed along with Adv Monitor app %s", >> + match.path, match.owner); >> >> return dbus_message_new_method_return(msg); >> } >> @@ -1021,8 +1030,8 @@ static void adv_monitor_removed_callback(uint16_t index, uint16_t length, >> const uint16_t adapter_id = manager->adapter_id; >> >> if (length < sizeof(*ev)) { >> - btd_error(adapter_id, "Wrong size of Adv Monitor Removed " >> - "event"); >> + btd_error(adapter_id, >> + "Wrong size of Adv Monitor Removed event"); >> return; >> } >> >> @@ -1093,8 +1102,9 @@ static void read_adv_monitor_features_cb(uint8_t status, uint16_t length, >> struct btd_adv_monitor_manager *manager = user_data; >> >> if (status != MGMT_STATUS_SUCCESS || !param) { >> - btd_error(manager->adapter_id, "Failed to Read Adv Monitor " >> - "Features with status 0x%02x", status); >> + btd_error(manager->adapter_id, >> + "Failed to Read Adv Monitor Features with " >> + "status 0x%02x", status); >> return; >> } >> >> @@ -1436,8 +1446,8 @@ static void adv_monitor_filter_rssi(struct adv_monitor *monitor, >> if (!dev) { >> dev = monitor_device_create(monitor, device); >> if (!dev) { >> - btd_error(adapter_id, "Failed to create Adv Monitor " >> - "device object."); >> + btd_error(adapter_id, >> + "Failed to create Adv Monitor device object."); >> return; >> } >> } >> -- >> 2.29.2.454.gaff20da3a2-goog Applied, thanks. -- Luiz Augusto von Dentz