Log the device name if the open fails

This commit is contained in:
Ludovic Rousseau 2012-05-22 09:50:12 +00:00
parent b237213f75
commit 56e44670a5

View file

@ -127,7 +127,7 @@ main (int argc, const char *argv[])
pnd = nfc_open (NULL, connstrings[i]); pnd = nfc_open (NULL, connstrings[i]);
if (pnd == NULL) { if (pnd == NULL) {
ERR ("%s", "Unable to open NFC device."); ERR ("Unable to open NFC device: %s", connstrings[i]);
continue; continue;
} }
if (nfc_initiator_init (pnd) < 0) { if (nfc_initiator_init (pnd) < 0) {