Commit 4484aac3 authored by Alejandro Mery's avatar Alejandro Mery
Browse files

bin2fex: pr_err() and pr_info() to stderr _and_ out

parent 2f14c617
...@@ -26,7 +26,11 @@ ...@@ -26,7 +26,11 @@
#include <sys/mman.h> #include <sys/mman.h>
#include <fcntl.h> #include <fcntl.h>
#define pr_info(F, ...) fprintf(out, "; bin2fex: " F, __VA_ARGS__) #define pr_info(F, ...) do { \
fprintf(stderr, "bin2fex: " F, __VA_ARGS__); \
fprintf(out, "; bin2fex: " F, __VA_ARGS__); \
} while(0)
#define pr_err(F, ...) pr_info("ERROR: " F, __VA_ARGS__) #define pr_err(F, ...) pr_info("ERROR: " F, __VA_ARGS__)
#define PTR(B, OFF) (void*)((char*)(B)+(OFF)) #define PTR(B, OFF) (void*)((char*)(B)+(OFF))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment