Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2930456ybt; Mon, 22 Jun 2020 10:29:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZKUPumjGKDJMEC+UqZ1kROx+5h++36FulUT28LlBHQ/a2yk+CpN+/pZ78TcZwoGe9rR4V X-Received: by 2002:a17:906:2893:: with SMTP id o19mr15502633ejd.231.1592846955726; Mon, 22 Jun 2020 10:29:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592846955; cv=none; d=google.com; s=arc-20160816; b=ZjClVjo5zoyqxBdTiIOB9N8eMCwMdH4KvjvgGduFQPMCjW/VR3ksC6zu7x0yeywUwa z8Vh+aeq3FgoUVCFu+2qcyLP6XQ8YxeLp+FGA8kgfUpIJFKunPv7AaHhopRTf7MA1lNb 5dm0mIu3gFIm/aRv+oEZLCfPdwp05gcxAQnV2VjBg6BX04CCORbttlqlSnlnBGnSBAyY 1ssIw63gC89UWOo4hH0PfpzVC4Ku4INq8zNhb4ujdUSWZTgkKfSJiq8Sse5XJavl8j+V Nz8pnAJFs4PBB6eWDI5Ic9dA/K1p7YMwssBEdFfJ+eAghJC8Vy857XElFo6oWJIni/g5 BgDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:organization:references:in-reply-to:date:to:from:subject :message-id:ironport-sdr:ironport-sdr; bh=57v6W/4SLT3BXT20LxPE2vsUM4SMq57J+cGEAAPiwQ8=; b=o8/iPR5X4zuZC4FUqkx0PhLv3Vc8netciZMl8KD3Q+8wtmx3XD/wQ9xUJgZz2MA2jU ZJ3v7iqsSgVh8dPzXmgFHWWWSnpWCpM30VtP0+mXX6q0sJPioq9lnMyYHXOqYBudfEyj F5do5bQr9+im1bVkg7KZIgw9/FZCiANPPsRqkQ3hAvg52+XjmdIaENL9M0KyZzSsks7C 2fDwFH8usUC7/o3nePMjZly+HJLHE+VJ3sP4WbbC8RZJCmUDmuEhI2jFJ6nqqA7i9kUV n/nT2XtETR+uA8qcfusGhnheAdmJ8nDgwLr3j9fuaXBmR8fHM344/7GRoCP7J4zNMQTG +1dg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g1si10472072edn.343.2020.06.22.10.28.49; Mon, 22 Jun 2020 10:29:15 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729815AbgFVR2o (ORCPT + 99 others); Mon, 22 Jun 2020 13:28:44 -0400 Received: from mga01.intel.com ([192.55.52.88]:47731 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729808AbgFVR2o (ORCPT ); Mon, 22 Jun 2020 13:28:44 -0400 IronPort-SDR: +jKSF22dC1WzbYeY6AO5Wurkii6Z+OauhklVS/7rtB059P4ClIyVFYy82D8sFny3Oj3AEEhGS6 l+bDqwcR2qCA== X-IronPort-AV: E=McAfee;i="6000,8403,9660"; a="161906137" X-IronPort-AV: E=Sophos;i="5.75,268,1589266800"; d="scan'208";a="161906137" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2020 10:28:44 -0700 IronPort-SDR: v4f9kSERP0A6Lh5riOtLtL+jF8FmGNpQK/f8SxR244QL8Gfpk6/zyeZNJURtJk5d5QbVErdDh8 /hybQIkB+m5Q== X-IronPort-AV: E=Sophos;i="5.75,268,1589266800"; d="scan'208";a="310997461" Received: from apander1-mobl.amr.corp.intel.com (HELO han1-mobl3.jf.intel.com) ([10.255.228.143]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2020 10:28:43 -0700 Message-ID: <2db64e58e9aca20f4203ae3e34d5f12543a65afa.camel@linux.intel.com> Subject: Re: [bluez,v4,2/3] btmgmt: Add command "remove" into "monitor" btmgmt submenu From: Tedd Ho-Jeong An To: Luiz Augusto von Dentz , "linux-bluetooth@vger.kernel.org" Date: Mon, 22 Jun 2020 10:28:36 -0700 In-Reply-To: References: <20200619155612.bluez.v4.2.Ib8ae2d78936aa9f16a318aca14cf8c7198449bac@changeid> <5eed44b6.1c69fb81.44ef1.7e06@mx.google.com> Organization: Intel Corporation Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.4 (3.34.4-1.fc31) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Luiz, On Mon, 2020-06-22 at 09:57 -0700, Luiz Augusto von Dentz wrote: > Hi Tedd, > > On Fri, Jun 19, 2020 at 9:57 PM wrote: > > > > This is automated email and please do not reply to this email! > > > > Dear submitter, > > > > Thank you for submitting the patches to the linux bluetooth mailing list. > > While we are preparing for reviewing the patches, we found the following > > issue/warning. > > > > Test Result: > > checkpatch Failed > > > > Outputs: > > WARNING:SSCANF_TO_KSTRTO: Prefer kstrto to single variable sscanf > > #78: FILE: tools/btmgmt.c:4686: > > + if (sscanf(argv[1], "%hx", &monitor_handle) != 1) { > > + error("Wrong formatted handle argument"); > > + return bt_shell_noninteractive_quit(EXIT_FAILURE); > > + } > > We might want to turn off this warning since it doesn't apply to > userspace where kstrto is not available. I made a change. Also, I submit the patch to add .checkpatch.conf in the tree which will also help others to run checkpatch before submissing. Once it is checked in, I will update the CI. > > > - total: 0 errors, 1 warnings, 80 lines checked > > > > NOTE: For some of the reported defects, checkpatch may be able to > > mechanically convert to the typical style using --fix or --fix- > > inplace. > > > > Your patch has style problems, please review. > > > > NOTE: Ignored message types: COMMIT_MESSAGE COMPLEX_MACRO CONST_STRUCT > > FILE_PATH_CHANGES MISSING_SIGN_OFF PREFER_PACKED SPLIT_STRING > > > > NOTE: If any of the errors are false positives, please report > > them to the maintainer, see CHECKPATCH in MAINTAINERS. > > > > > > > > --- > > Regards, > > Linux Bluetooth > > Regards, Tedd Ho-Jeong An