diff options
author | Gwenole Beauchesne <gbeauchesne@splitted-desktop.com> | 2010-10-08 12:17:56 +0000 |
---|---|---|
committer | Gwenole Beauchesne <gbeauchesne@splitted-desktop.com> | 2010-10-08 12:17:56 +0000 |
commit | b0cd3e351a5dd75f3d4fe385bd276ac55d5c31ab (patch) | |
tree | aadf6a157373523e101955d0ddc403353c32246c /src | |
parent | 6e40e1e214d422d301cabc1fc021a76d79cb73f6 (diff) |
Use do_{v,}fprintf() wrappers.
Diffstat (limited to 'src')
-rw-r--r-- | src/debug.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/debug.c b/src/debug.c index b4d9be0..98b6638 100644 --- a/src/debug.c +++ b/src/debug.c @@ -23,8 +23,10 @@ #include "utils.h" #include <stdarg.h> -static inline void do_vfprintf(FILE *fp, const char *msg, va_list args) +static void do_vfprintf(FILE *fp, const char *msg, va_list args) { + /* XXX: use another printf() function, e.g. a valgrind one to + maintain correct control flow */ vfprintf(fp, msg, args); } @@ -41,9 +43,9 @@ void vdpau_error_message(const char *msg, ...) { va_list args; - fprintf(stderr, "%s: error: ", PACKAGE_NAME); + do_fprintf(stderr, "%s: error: ", PACKAGE_NAME); va_start(args, msg); - vfprintf(stderr, msg, args); + do_vfprintf(stderr, msg, args); va_end(args); } @@ -51,9 +53,9 @@ void vdpau_information_message(const char *msg, ...) { va_list args; - fprintf(stderr, "%s: ", PACKAGE_NAME); + do_fprintf(stdout, "%s: ", PACKAGE_NAME); va_start(args, msg); - vfprintf(stderr, msg, args); + do_vfprintf(stdout, msg, args); va_end(args); } |