From 9d796f81ab549a8366346d08f557d0dd2c98d2fb Mon Sep 17 00:00:00 2001 From: wiire-a Date: Thu, 30 Nov 2017 19:30:20 +0100 Subject: [PATCH] Print all debug info on stdout --- src/pixiewps.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pixiewps.h b/src/pixiewps.h index 0dad2b5..eb27ca1 100644 --- a/src/pixiewps.h +++ b/src/pixiewps.h @@ -49,7 +49,7 @@ #endif #if defined(DEBUG) -# define DEBUG_PRINT(fmt, args...) do { fprintf(stderr, "\n [DEBUG] %s:%d:%s(): " fmt, \ +# define DEBUG_PRINT(fmt, args...) do { printf("\n [DEBUG] %s:%d:%s(): " fmt, \ __FILE__, __LINE__, __func__, ##args); fflush(stdout); } while (0) # define DEBUG_PRINT_ARRAY(b, l) do { byte_array_print(b, l); fflush(stdout); } while (0) #else