diff mbox

[13/23] nfctype5: Reduce noise when tag is moved out of range

Message ID 20170615182516.4508-14-mgreer@animalcreek.com (mailing list archive)
State Accepted
Delegated to: Samuel Ortiz
Headers show

Commit Message

Mark Greer June 15, 2017, 6:25 p.m. UTC
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 <mgreer@animalcreek.com>
---
 plugins/nfctype5.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

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