Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Sunxi Tools
Commits
4484aac3
Commit
4484aac3
authored
May 07, 2012
by
Alejandro Mery
Browse files
bin2fex: pr_err() and pr_info() to stderr _and_ out
parent
2f14c617
Changes
1
Show whitespace changes
Inline
Side-by-side
bin2fex.c
View file @
4484aac3
...
...
@@ -26,7 +26,11 @@
#include <sys/mman.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 PTR(B, OFF) (void*)((char*)(B)+(OFF))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment