diff options
author | Andre Przywara <andre.przywara@arm.com> | 2016-02-04 00:31:20 +0000 |
---|---|---|
committer | Andre Przywara <andre.przywara@arm.com> | 2016-02-04 09:08:46 +0000 |
commit | 4511a5c3d8f140e2c32dd32e04668555b25f43bf (patch) | |
tree | e3c5e7bef9defc0bba5ad4232f6ef92c6ba5d4f4 /plat | |
parent | 378759eb3325267f423258357dde521d6f9cff97 (diff) |
arisc: make debug macros -pedantic compatible
Allwinner removed "-pedantic" from the list of CFLAGS to get away
with some conditional debug macros using a GNU extension.
Fix those macros to use a standard compliant syntax and re-enable
-pedantic.
Diffstat (limited to 'plat')
-rw-r--r-- | plat/sun50iw1p1/scp/include/arisc_dbgs.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/plat/sun50iw1p1/scp/include/arisc_dbgs.h b/plat/sun50iw1p1/scp/include/arisc_dbgs.h index aef8f5e..79ca603 100644 --- a/plat/sun50iw1p1/scp/include/arisc_dbgs.h +++ b/plat/sun50iw1p1/scp/include/arisc_dbgs.h @@ -37,21 +37,21 @@ #define DEBUG_LEVEL_WRN ((uint32_t)1 << 2) #define DEBUG_LEVEL_ERR ((uint32_t)1 << 3) -#define ARISC_INF(format, args...) \ +#define ARISC_INF(...) \ if(DEBUG_LEVEL_INF & (0xf0 >> (arisc_debug_level +1))) \ - tf_printf("[SCP] :"format, ##args); + tf_printf("[SCP] :" __VA_ARGS__); -#define ARISC_LOG(format, args...) \ +#define ARISC_LOG(...) \ if(DEBUG_LEVEL_LOG & (0xf0 >> (arisc_debug_level +1))) \ - tf_printf("[SCP] :"format, ##args); + tf_printf("[SCP] :" __VA_ARGS__); -#define ARISC_WRN(format, args...) \ +#define ARISC_WRN(...) \ if(DEBUG_LEVEL_WRN & (0xf0 >> (arisc_debug_level +1))) \ - tf_printf("[SCP WARING] :"format, ##args); + tf_printf("[SCP WARING] :" __VA_ARGS__); -#define ARISC_ERR(format, args...) \ +#define ARISC_ERR(...) \ if(DEBUG_LEVEL_ERR & (0xf0 >> (arisc_debug_level +1))) \ - tf_printf("[SCP ERROR] :"format, ##args); + tf_printf("[SCP ERROR] :" __VA_ARGS__); #else /* ARISC_DEBUG_ON */ #define ARISC_INF(...) |