mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-20 14:33:46 +00:00
set approrpiate reporting level for error messages
This commit is contained in:
@@ -104,12 +104,12 @@ acr122_pick_device (void)
|
|||||||
size_t szN;
|
size_t szN;
|
||||||
|
|
||||||
if (!acr122_list_devices (pndd, 1, &szN)) {
|
if (!acr122_list_devices (pndd, 1, &szN)) {
|
||||||
ERR("%s", "acr122_list_devices failed");
|
DBG("%s", "acr122_list_devices failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (szN == 0) {
|
if (szN == 0) {
|
||||||
ERR("%s", "No device found");
|
DBG("%s", "No device found");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user