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

From: Fabian Frederick
Date: Fri Jun 20 2014 - 16:24:21 EST


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 <dushistov@xxxxxxx>
Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Signed-off-by: Fabian Frederick <fabf@xxxxxxxxx>
---
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/