Log the device name if the open fails
This commit is contained in:
parent
b237213f75
commit
56e44670a5
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue