mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
parser: Send PDEBUG() to stderr
PDEBUG() and PERROR() should both go to stderr. Signed-off-by: Tyler Hicks <tyhicks@canonical.com> Acked-by: Seth Arnold <seth.arnold@canonical.com>
This commit is contained in:
parent
cf4afcb860
commit
c5ff27a91b
3 changed files with 3 additions and 3 deletions
|
@ -172,7 +172,7 @@ extern int preprocess_only;
|
|||
|
||||
|
||||
#ifdef DEBUG
|
||||
#define PDEBUG(fmt, args...) printf("parser: " fmt, ## args)
|
||||
#define PDEBUG(fmt, args...) fprintf(stderr, "parser: " fmt, ## args)
|
||||
#else
|
||||
#define PDEBUG(fmt, args...) /* Do nothing */
|
||||
#endif
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
/* #define DEBUG */
|
||||
#ifdef DEBUG
|
||||
#undef PDEBUG
|
||||
#define PDEBUG(fmt, args...) printf("Lexer: " fmt, ## args)
|
||||
#define PDEBUG(fmt, args...) fprintf(stderr, "Lexer: " fmt, ## args)
|
||||
#else
|
||||
#undef PDEBUG
|
||||
#define PDEBUG(fmt, args...) /* Do nothing */
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
|
||||
/* #define DEBUG */
|
||||
#ifdef DEBUG
|
||||
#define PDEBUG(fmt, args...) printf("Lexer: " fmt, ## args)
|
||||
#define PDEBUG(fmt, args...) fprintf(stderr, "Lexer: " fmt, ## args)
|
||||
#else
|
||||
#define PDEBUG(fmt, args...) /* Do nothing */
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue