diff --git a/src/rx/rx_kcommon.c b/src/rx/rx_kcommon.c index d2bf5e0088..688c31ca11 100644 --- a/src/rx/rx_kcommon.c +++ b/src/rx/rx_kcommon.c @@ -1344,7 +1344,7 @@ osi_Panic(char *msg, ...) va_start(ap, msg); vsnprintf(buf, sizeof(buf), msg, ap); va_end(ap); - printf(buf); + printf("%s", buf); panic(buf); #else va_list ap; diff --git a/src/rx/rx_kernel.h b/src/rx/rx_kernel.h index b6ac7f4cf0..a7a0e94037 100644 --- a/src/rx/rx_kernel.h +++ b/src/rx/rx_kernel.h @@ -36,7 +36,7 @@ typedef struct socket *osi_socket; CM_TRACE_RXWAKE, ICL_TYPE_STRING, __FILE__, ICL_TYPE_INT32, __LINE__) extern int osi_utoa(char *buf, size_t len, unsigned long val); -#define osi_Assert(e) (void)((e) || (osi_AssertFailK(#e, __FILE__, __LINE__), 0)) +#define osi_Assert(exp) (void)((exp) || (osi_AssertFailK( #exp , __FILE__, __LINE__), 0)) #define osi_Msg printf)( #define osi_VMsg vprintf)(