diff options
Diffstat (limited to 'include/linux/sunrpc/debug.h')
| -rw-r--r-- | include/linux/sunrpc/debug.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/linux/sunrpc/debug.h b/include/linux/sunrpc/debug.h index 2a11eb278f64..b506936f4ce6 100644 --- a/include/linux/sunrpc/debug.h +++ b/include/linux/sunrpc/debug.h | |||
| @@ -54,7 +54,11 @@ extern unsigned int nlm_debug; | |||
| 54 | #undef ifdebug | 54 | #undef ifdebug |
| 55 | #ifdef RPC_DEBUG | 55 | #ifdef RPC_DEBUG |
| 56 | # define ifdebug(fac) if (unlikely(rpc_debug & RPCDBG_##fac)) | 56 | # define ifdebug(fac) if (unlikely(rpc_debug & RPCDBG_##fac)) |
| 57 | # define dfprintk(fac, args...) do { ifdebug(fac) printk(args); } while(0) | 57 | # define dfprintk(fac, args...) \ |
| 58 | do { \ | ||
| 59 | ifdebug(fac) \ | ||
| 60 | printk(KERN_DEFAULT args); \ | ||
| 61 | } while (0) | ||
| 58 | # define RPC_IFDEBUG(x) x | 62 | # define RPC_IFDEBUG(x) x |
| 59 | #else | 63 | #else |
| 60 | # define ifdebug(fac) if (0) | 64 | # define ifdebug(fac) if (0) |
