diff options
author | Joe Perches <joe@perches.com> | 2014-04-08 16:04:16 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-08 16:48:52 -0700 |
commit | e45ca8baa33e0c0228e84126c3a20df3abfd1771 (patch) | |
tree | 857a421ea03f957b144281af36291fbe3e88a0df /fs/ncpfs/ncp_fs.h | |
parent | d3b73ca1be3236fc33f896af7e2ba637a677d5c9 (diff) | |
download | linux-e45ca8baa33e0c0228e84126c3a20df3abfd1771.tar.gz linux-e45ca8baa33e0c0228e84126c3a20df3abfd1771.tar.bz2 linux-e45ca8baa33e0c0228e84126c3a20df3abfd1771.zip |
ncpfs: convert PPRINTK to ncp_vdbg
Use a more current logging style.
Convert the paranoia debug statement to vdbg.
Remove the embedded function names as dynamic_debug can do that.
Signed-off-by: Joe Perches <joe@perches.com>
Cc: Petr Vandrovec <petr@vandrovec.name>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ncpfs/ncp_fs.h')
-rw-r--r-- | fs/ncpfs/ncp_fs.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/fs/ncpfs/ncp_fs.h b/fs/ncpfs/ncp_fs.h index b54ad123b9d4..d52e7e6b5eed 100644 --- a/fs/ncpfs/ncp_fs.h +++ b/fs/ncpfs/ncp_fs.h @@ -7,9 +7,14 @@ #undef NCPFS_PARANOIA #ifdef NCPFS_PARANOIA -#define PPRINTK(format, args...) PRINTK(format , ## args) +#define ncp_vdbg(fmt, ...) \ + pr_debug(fmt, ##__VA_ARGS__) #else -#define PPRINTK(format, args...) +#define ncp_vdbg(fmt, ...) \ +do { \ + if (0) \ + pr_debug(fmt, ##__VA_ARGS__); \ +} while (0) #endif #ifndef DEBUG_NCP |