From patchwork Thu Jun 15 18:25:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Greer X-Patchwork-Id: 9789803 X-Patchwork-Delegate: sameo@linux.intel.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7259860325 for ; Thu, 15 Jun 2017 18:25:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6BEF42861E for ; Thu, 15 Jun 2017 18:25:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 60D152862C; Thu, 15 Jun 2017 18:25:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E55E72861E for ; Thu, 15 Jun 2017 18:25:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753114AbdFOSZw (ORCPT ); Thu, 15 Jun 2017 14:25:52 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:33521 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753199AbdFOSZb (ORCPT ); Thu, 15 Jun 2017 14:25:31 -0400 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 7E18F20A90; Thu, 15 Jun 2017 14:25:19 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute3.internal (MEProxy); Thu, 15 Jun 2017 14:25:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=animalcreek.com; h=cc:date:from:in-reply-to:message-id:references:subject:to :x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=eLD Ye89KDVFDMC8nIgieI5O9Ct0OscG4X/B2/GqJUlw=; b=UTRtBAhjG/ATEYXxjGu PUuliTKaYe5/SHhuwwe4RYR2kK2YjKwhfmHSLFNBBCCWcRtoTtQHgdCJMmU0VXcX D1ggYHmGxyjc/GzFoOIJG0LfVQVYl3ttOXML6h6FD6Qun1Ccf7ZrDxQEUlspdoUb tlmJOjSjDGBmFmfJZIcZ2mhQ= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:in-reply-to:message-id :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc :x-sasl-enc; s=fm1; bh=eLDYe89KDVFDMC8nIgieI5O9Ct0OscG4X/B2/GqJU lw=; b=Pd3MkGUcgaIZ69LN54FQ7zoOvko7eAOzkdqecwhw4DmFgVS90NWk9KW/q s65/odwlRubsWFJhgfxjpOMXD4RuEt7UDmdVTcFQxeRDqTJw4RKBhyz2jhsR4KNh Dv0ptd7bsWRf0UelwxVZlVnz63/3Yj4S6SRmKY/A9mXCA69kFRG4i93D9hUYxrPt YfRAE/nejCoaqfC6HrhLMrSPT5/yQfsjHzUyJgLAxT/ZFiS+9WwmHT5t3jzg+n8A LaKKtZ+qmUuj68jqjLs0iUiRpo6tW4QWNzkYtZQQLScQ5r5a1lP4fJuI3CgoN8H7 c4BZS4hyqQVLwToUT1pyhtSwInSkA== X-ME-Sender: X-Sasl-enc: GJkD11z9eQADkMo01kMCVXTrjBHToFb0Ue7zboi8IvZT 1497551119 Received: from blue.animalcreek.com (ip68-2-81-12.ph.ph.cox.net [68.2.81.12]) by mail.messagingengine.com (Postfix) with ESMTPA id 3801D249CF; Thu, 15 Jun 2017 14:25:19 -0400 (EDT) Received: from blue.animalcreek.com (localhost [127.0.0.1]) by blue.animalcreek.com (Postfix) with ESMTP id F3E9FA20598; Thu, 15 Jun 2017 11:25:17 -0700 (MST) From: Mark Greer To: Samuel Ortiz Cc: linux-wireless@vger.kernel.org, linux-nfc@lists.01.org, Mark Greer Subject: [PATCH 13/23] nfctype5: Reduce noise when tag is moved out of range Date: Thu, 15 Jun 2017 11:25:06 -0700 Message-Id: <20170615182516.4508-14-mgreer@animalcreek.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170615182516.4508-1-mgreer@animalcreek.com> References: <20170615182516.4508-1-mgreer@animalcreek.com> Organization: Animal Creek Technologies, Inc. Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The NFC Type 5 tag code prints a message whenever it receives an error. This makes it extra noisy compared to the other tag types whenever a tag is moved out of range. Instead, reduce that noise by turning the error message into a debug message. Signed-off-by: Mark Greer --- plugins/nfctype5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/nfctype5.c b/plugins/nfctype5.c index 1beb3a8..2fccec5 100644 --- a/plugins/nfctype5.c +++ b/plugins/nfctype5.c @@ -226,7 +226,7 @@ static int t5_check_resp(uint8_t *resp, int length) DBG(""); if (length < 0) { - near_error("Cmd failure: %d", length); + DBG("Cmd failure: %d", length); err = length; } else if (resp[0]) { near_error("NFC Failure: 0x%x", resp[0]);