X-Git-Url: http://git.etherboot.org/mirror/scst/.git/blobdiff_plain/d87e8ba444cecef2df2186cdca18788a63613921..e1559d0ec2ab8cd667416fe10855489aeda47ed4:/scst/include/scst_debug.h diff --git a/scst/include/scst_debug.h b/scst/include/scst_debug.h index cf8a79a..a83d1a8 100644 --- a/scst/include/scst_debug.h +++ b/scst/include/scst_debug.h @@ -169,9 +169,9 @@ do { \ #else /* CONFIG_SCST_DEBUG || CONFIG_SCST_TRACING */ -#define TRACE(trace, args...) {} -#define PRINT_BUFFER(message, buff, len) {} -#define PRINT_BUFF_FLAG(flag, message, buff, len) {} +#define TRACE(trace, args...) do {} while (0) +#define PRINT_BUFFER(message, buff, len) do {} while (0) +#define PRINT_BUFF_FLAG(flag, message, buff, len) do {} while (0) #endif /* CONFIG_SCST_DEBUG || CONFIG_SCST_TRACING */ @@ -319,18 +319,18 @@ do { \ #else /* CONFIG_SCST_DEBUG */ -#define TRACE_MEM(format, args...) {} -#define TRACE_SG(format, args...) {} -#define TRACE_DBG(format, args...) {} -#define TRACE_DBG_SPECIAL(format, args...) {} -#define TRACE_MGMT_DBG(format, args...) {} -#define TRACE_MGMT_DBG_SPECIAL(format, args...) {} -#define TRACE_BUFFER(message, buff, len) {} -#define TRACE_BUFF_FLAG(flag, message, buff, len) {} -#define TRACE_ENTRY() {} -#define TRACE_EXIT() {} -#define TRACE_EXIT_RES(res) {} -#define TRACE_EXIT_HRES(res) {} +#define TRACE_MEM(format, args...) do {} while (0) +#define TRACE_SG(format, args...) do {} while (0) +#define TRACE_DBG(format, args...) do {} while (0) +#define TRACE_DBG_SPECIAL(format, args...) do {} while (0) +#define TRACE_MGMT_DBG(format, args...) do {} while (0) +#define TRACE_MGMT_DBG_SPECIAL(format, args...) do {} while (0) +#define TRACE_BUFFER(message, buff, len) do {} while (0) +#define TRACE_BUFF_FLAG(flag, message, buff, len) do {} while (0) +#define TRACE_ENTRY() do {} while (0) +#define TRACE_EXIT() do {} while (0) +#define TRACE_EXIT_RES(res) do {} while (0) +#define TRACE_EXIT_HRES(res) do {} while (0) #ifdef LOG_PREFIX