Commit 756fa92f authored by Marcin Slusarz's avatar Marcin Slusarz Committed by Linus Torvalds

udf: fix udf_debug macro

udf_debug should be enclosed with do { } while (0)
to be safely used in code like below:
if (something)
(Otherwise compiler will not compile it with:
"error: expected expression before 'else'")
Signed-off-by: default avatarMarcin Slusarz <>
Cc: Jan Kara <>
Cc: Christoph Hellwig <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 48d6d8ff
......@@ -39,11 +39,11 @@
#define udf_debug(f, a...) \
{ \
do { \
printk (KERN_DEBUG "UDF-fs DEBUG %s:%d:%s: ", \
__FILE__, __LINE__, __FUNCTION__); \
printk (f, ##a); \
} while (0)
#define udf_debug(f, a...) /**/
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment