diff options
author | Geoff Levand <geoff@infradead.org> | 2011-12-04 15:02:31 -0800 |
---|---|---|
committer | Geoff Levand <geoff@infradead.org> | 2011-12-04 16:15:00 -0800 |
commit | 8f122ed62ffcd0508d857393e6809f2581cf790e (patch) | |
tree | ba2bf5af8b40e1bd7f67a1444d980638203195b7 /discover/params.c | |
parent | 402b446414b71e2052e08a7a879c88493f72c856 (diff) | |
download | talos-petitboot-8f122ed62ffcd0508d857393e6809f2581cf790e.tar.gz talos-petitboot-8f122ed62ffcd0508d857393e6809f2581cf790e.zip |
Fix params.c logging
Fixes build warnings like these:
implicit declaration of function ‘pb_log’
Signed-off-by: Geoff Levand <geoff@infradead.org>
Diffstat (limited to 'discover/params.c')
-rw-r--r-- | discover/params.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/discover/params.c b/discover/params.c index 3c79099..09c2b0f 100644 --- a/discover/params.c +++ b/discover/params.c @@ -22,16 +22,16 @@ #include <ctype.h> #include <errno.h> +#include <log/log.h> + #include "params.h" #define new_array(type, num) ((type *)_new_array(sizeof(type), (num))) #define realloc_array(ptr, type, num) \ ((type *)_realloc_array((ptr), sizeof(type), (num))) -#define rprintf(x, ...) do { pb_log(stderr, ##__VA_ARGS__); \ - pb_log(stderr, "\n"); } while (0) -#define rsyserr(x, y, ...) do { pb_log(stderr, ##__VA_ARGS__); \ - pb_log(stderr, "\n"); } while (0) +#define rprintf(x, ...) do {pb_log(__VA_ARGS__); pb_log("\n");} while (0) +#define rsyserr(x, y, ...) do {pb_log(__VA_ARGS__); pb_log("\n");} while (0) #define MALLOC_MAX 0x40000000 #define False 0 |