[Skiboot] [PATCH 04/60] stdio: Fix default definition of pr_fmt

Benjamin Herrenschmidt benh at kernel.crashing.org
Thu Dec 22 14:16:12 AEDT 2016


And change include order in libpore to avoid a compile failure
due to the default definition

Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
---
 libc/include/stdio.h                  | 2 +-
 libpore/p8_pore_table_gen_api_fixed.C | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libc/include/stdio.h b/libc/include/stdio.h
index db5f1b0..5dc4502 100644
--- a/libc/include/stdio.h
+++ b/libc/include/stdio.h
@@ -44,7 +44,7 @@ int fileno(FILE *stream);
 int _printf(const char *format, ...) __attribute__((format (printf, 1, 2)));
 
 #ifndef pr_fmt
-#define prfmt(fmt) fmt
+#define pr_fmt(fmt) fmt
 #endif
 
 #define printf(f, ...) do { _printf(pr_fmt(f), ##__VA_ARGS__); } while(0)
diff --git a/libpore/p8_pore_table_gen_api_fixed.C b/libpore/p8_pore_table_gen_api_fixed.C
index 3163bc9..b609b0d 100644
--- a/libpore/p8_pore_table_gen_api_fixed.C
+++ b/libpore/p8_pore_table_gen_api_fixed.C
@@ -40,9 +40,9 @@
 /*------------------------------------------------------------------------------*/
 
 #define __P8_PORE_TABLE_GEN_API_C
+#include <p8_delta_scan_rw.h>
 #include <p8_pore_api_custom.h>
 #include <p8_pore_table_gen_api.H>
-#include <p8_delta_scan_rw.h>
 
 /*
 // io_image -      pointer to SLW image
-- 
2.9.3



More information about the Skiboot mailing list