From 186cccfe6a176ebcc97a9d9134120e96fa0239bc Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Tue, 1 Oct 2013 14:14:00 +0200 Subject: [PATCH] pn532_uart: make use of log level for pn53x_check_communication() --- libnfc/drivers/pn532_uart.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnfc/drivers/pn532_uart.c b/libnfc/drivers/pn532_uart.c index 12794af..1047078 100644 --- a/libnfc/drivers/pn532_uart.c +++ b/libnfc/drivers/pn532_uart.c @@ -290,7 +290,7 @@ pn532_uart_open(const nfc_context *context, const nfc_connstring connstring) // Check communication using "Diagnose" command, with "Communication test" (0x00) if (pn53x_check_communication(pnd) < 0) { - nfc_perror(pnd, "pn53x_check_communication"); + log_put(LOG_GROUP, LOG_CATEGORY, NFC_LOG_PRIORITY_ERROR, "pn53x_check_communication error on %s", ndd.port); pn532_uart_close(pnd); return NULL; }