2014-06-20 20:24:17

by Fabian Frédérick

[permalink] [raw]
Subject: [PATCH 5/5] FS/UFS: convert UFSD printk to pr_debug

Convert no level printk to pr_debug in UFSD.
DEBUG is defined with CONFIG_UFS_DEBUG so pr_debug
are emitted here.

Also fixing call to UFSD (add;)

Cc: Evgeniy Dushistov <[email protected]>
Cc: Andrew Morton <[email protected]>
Signed-off-by: Fabian Frederick <[email protected]>
---
fs/ufs/super.c | 2 +-
fs/ufs/ufs.h | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/fs/ufs/super.c b/fs/ufs/super.c
index 206f7d6..da73801 100644
--- a/fs/ufs/super.c
+++ b/fs/ufs/super.c
@@ -868,7 +868,7 @@ static int ufs_fill_super(struct super_block *sb, void *data, int silent)
break;

case UFS_MOUNT_UFSTYPE_SUNOS:
- UFSD(("ufstype=sunos\n"))
+ UFSD("ufstype=sunos\n");
uspi->s_fsize = block_size = 1024;
uspi->s_fmask = ~(1024 - 1);
uspi->s_fshift = 10;
diff --git a/fs/ufs/ufs.h b/fs/ufs/ufs.h
index cbe1e9b..2a07396 100644
--- a/fs/ufs/ufs.h
+++ b/fs/ufs/ufs.h
@@ -77,9 +77,9 @@ struct ufs_inode_info {
*/
#ifdef CONFIG_UFS_DEBUG
# define UFSD(f, a...) { \
- printk ("UFSD (%s, %d): %s:", \
+ pr_debug("UFSD (%s, %d): %s:", \
__FILE__, __LINE__, __func__); \
- printk (f, ## a); \
+ pr_debug(f, ## a); \
}
#else
# define UFSD(f, a...) /**/
--
1.8.4.5