From 231913fd3520304712b8d695deeef9c25c3ff48b Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Wed, 20 Apr 2011 12:11:31 +0000 Subject: [PATCH] show PRINT_HEX result on stderr in debug mode (that helps to sync with debug msg which are printed on standard error output.) --- libnfc/nfc-internal.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libnfc/nfc-internal.h b/libnfc/nfc-internal.h index 03aad1b..7e78fde 100644 --- a/libnfc/nfc-internal.h +++ b/libnfc/nfc-internal.h @@ -39,11 +39,11 @@ # ifdef DEBUG # define PRINT_HEX(pcTag, pbtData, szBytes) do { \ size_t __szPos; \ - printf(" %s: ", pcTag); \ + fprintf(stderr, " %s: ", pcTag); \ for (__szPos=0; __szPos < (size_t)(szBytes); __szPos++) { \ - printf("%02x ",((uint8_t *)(pbtData))[__szPos]); \ + fprintf(stderr, "%02x ",((uint8_t *)(pbtData))[__szPos]); \ } \ - printf("\n"); \ + fprintf(stderr, "\n"); \ } while (0); # else # define PRINT_HEX(pcTag, pbtData, szBytes) do { \