diff options
author | stefanf <stefanf@FreeBSD.org> | 2006-07-17 09:33:24 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2006-07-17 09:33:24 +0000 |
commit | d83fcb992a7ca4565bb97c54ade4dac15f727b9a (patch) | |
tree | a68c4bca283726434ed1b8cc33c4f639a1d607a9 /lib/libdevinfo | |
parent | 01c3a07e52b5b014e2d422f4b85a0deee28bccc2 (diff) | |
download | FreeBSD-src-d83fcb992a7ca4565bb97c54ade4dac15f727b9a.zip FreeBSD-src-d83fcb992a7ca4565bb97c54ade4dac15f727b9a.tar.gz |
Make the variadic macro debug() comply to C99.
Diffstat (limited to 'lib/libdevinfo')
-rw-r--r-- | lib/libdevinfo/devinfo.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/libdevinfo/devinfo.c b/lib/libdevinfo/devinfo.c index 5ad68c3..dbd02d0 100644 --- a/lib/libdevinfo/devinfo.c +++ b/lib/libdevinfo/devinfo.c @@ -83,10 +83,13 @@ static int devinfo_initted = 0; static int devinfo_generation = 0; #if 0 -# define debug(fmt, args...) \ - fprintf(stderr, "%s:" fmt "\n", __func__ , ##args) +# define debug(...) do { \ + fprintf(stderr, "%s:", __func__); \ + fprintf(stderr, __VA_ARGS__); \ + fprintf(stderr, "\n"); \ +} while (0) #else -# define debug(fmt, args...) +# define debug(...) #endif /* |