summaryrefslogtreecommitdiff
path: root/src/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/log.h')
-rw-r--r--src/log.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/log.h b/src/log.h
index 77eab35..fe1c49a 100644
--- a/src/log.h
+++ b/src/log.h
@@ -7,17 +7,17 @@
dbgl(format "\n", ## __VA_ARGS__)
#define dbgl(format, ...) do{\
- printf(format, ## __VA_ARGS__); \
+ fprintf(stderr, format, ## __VA_ARGS__); \
fflush(stderr); \
} while(0)
#define err(format, ...) do{\
- printf(format "\n", ## __VA_ARGS__); \
+ fprintf(stderr, format "\n", ## __VA_ARGS__); \
fflush(stderr); \
} while(0)
#define fatal(format, ...) do{\
- printf(format "\n", ## __VA_ARGS__); \
+ fprintf(stderr, format "\n", ## __VA_ARGS__); \
fflush(stderr); \
abort(); \
} while(0)