mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-14 03:23:48 +00:00
Log the device name if the open fails
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user