mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
scst_debug.h: Avoid that smatch complains about passing a pointer to format specifier %lx
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7563 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -339,28 +339,30 @@ do { \
|
||||
|
||||
#define TRACE_EXIT_RES(res) \
|
||||
do { \
|
||||
unsigned long lres = res; \
|
||||
\
|
||||
if (trace_flag & TRACE_ENTRYEXIT) { \
|
||||
if (trace_flag & TRACE_PID) { \
|
||||
PRINT(KERN_INFO, "[%d]: EXIT %s: %ld", current->pid, \
|
||||
__func__, (long)(res)); \
|
||||
} \
|
||||
else { \
|
||||
__func__, lres); \
|
||||
} else { \
|
||||
PRINT(KERN_INFO, "EXIT %s: %ld", \
|
||||
__func__, (long)(res)); \
|
||||
__func__, lres); \
|
||||
} \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#define TRACE_EXIT_HRES(res) \
|
||||
do { \
|
||||
unsigned long lres = (unsigned long)res; \
|
||||
\
|
||||
if (trace_flag & TRACE_ENTRYEXIT) { \
|
||||
if (trace_flag & TRACE_PID) { \
|
||||
PRINT(KERN_INFO, "[%d]: EXIT %s: 0x%lx", current->pid, \
|
||||
__func__, (long)(res)); \
|
||||
} \
|
||||
else { \
|
||||
__func__, lres); \
|
||||
} else { \
|
||||
PRINT(KERN_INFO, "EXIT %s: %lx", \
|
||||
__func__, (long)(res)); \
|
||||
__func__, lres); \
|
||||
} \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
Reference in New Issue
Block a user