From 56e44670a5245622c65005eec69c7a5b54365c53 Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Tue, 22 May 2012 09:50:12 +0000 Subject: [PATCH] Log the device name if the open fails --- utils/nfc-list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/nfc-list.c b/utils/nfc-list.c index 5c91cfd..ee570bb 100644 --- a/utils/nfc-list.c +++ b/utils/nfc-list.c @@ -127,7 +127,7 @@ main (int argc, const char *argv[]) pnd = nfc_open (NULL, connstrings[i]); if (pnd == NULL) { - ERR ("%s", "Unable to open NFC device."); + ERR ("Unable to open NFC device: %s", connstrings[i]); continue; } if (nfc_initiator_init (pnd) < 0) {