From b237213f75df3e21a885541195ddae3e8e1fff01 Mon Sep 17 00:00:00 2001 From: Ludovic Rousseau Date: Tue, 22 May 2012 09:48:43 +0000 Subject: [PATCH] Log an error message if opening a device fails --- utils/nfc-probe.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/nfc-probe.c b/utils/nfc-probe.c index 956301c..29342ca 100644 --- a/utils/nfc-probe.c +++ b/utils/nfc-probe.c @@ -115,7 +115,9 @@ main (int argc, const char *argv[]) } } nfc_close (pnd); - } + } else { + printf("nfc_open failed for %s\n", connstrings[i]); + } } res = EXIT_SUCCESS;