summaryrefslogtreecommitdiffstats
path: root/discover/params.c
diff options
context:
space:
mode:
authorGeoff Levand <geoff@infradead.org>2011-12-04 15:02:31 -0800
committerGeoff Levand <geoff@infradead.org>2011-12-04 16:15:00 -0800
commit8f122ed62ffcd0508d857393e6809f2581cf790e (patch)
treeba2bf5af8b40e1bd7f67a1444d980638203195b7 /discover/params.c
parent402b446414b71e2052e08a7a879c88493f72c856 (diff)
downloadtalos-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.c8
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
OpenPOWER on IntegriCloud