Skip to content

Commit

Permalink
fs/ufs: convert UFSD printk to pr_debug
Browse files Browse the repository at this point in the history
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;)

Signed-off-by: Fabian Frederick <[email protected]>
Cc: Evgeniy Dushistov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Fabian Frederick authored and torvalds committed Aug 8, 2014
1 parent 7e1e416 commit d4beaab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fs/ufs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions fs/ufs/ufs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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...) /**/
Expand Down

0 comments on commit d4beaab

Please sign in to comment.