nilfs2: use a more common logging style
Add macros for nilfs_<level>(sb, fmt, ...) and convert the uses of 'nilfs_msg(sb, KERN_<LEVEL>, ...)' to 'nilfs_<level>(sb, ...)' so nilfs2 uses a logging style more like the typical kernel logging style. Miscellanea: o Realign arguments for these uses Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Ryusuke Konishi <konishi.ryusuke@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Link: http://lkml.kernel.org/r/1595860111-3920-4-git-send-email-konishi.ryusuke@gmail.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
2987a4cfc8
commit
a1d0747a39
@@ -328,16 +328,18 @@ static int nilfs_direct_assign(struct nilfs_bmap *bmap,
|
||||
|
||||
key = nilfs_bmap_data_get_key(bmap, *bh);
|
||||
if (unlikely(key > NILFS_DIRECT_KEY_MAX)) {
|
||||
nilfs_msg(bmap->b_inode->i_sb, KERN_CRIT,
|
||||
"%s (ino=%lu): invalid key: %llu", __func__,
|
||||
bmap->b_inode->i_ino, (unsigned long long)key);
|
||||
nilfs_crit(bmap->b_inode->i_sb,
|
||||
"%s (ino=%lu): invalid key: %llu",
|
||||
__func__,
|
||||
bmap->b_inode->i_ino, (unsigned long long)key);
|
||||
return -EINVAL;
|
||||
}
|
||||
ptr = nilfs_direct_get_ptr(bmap, key);
|
||||
if (unlikely(ptr == NILFS_BMAP_INVALID_PTR)) {
|
||||
nilfs_msg(bmap->b_inode->i_sb, KERN_CRIT,
|
||||
"%s (ino=%lu): invalid pointer: %llu", __func__,
|
||||
bmap->b_inode->i_ino, (unsigned long long)ptr);
|
||||
nilfs_crit(bmap->b_inode->i_sb,
|
||||
"%s (ino=%lu): invalid pointer: %llu",
|
||||
__func__,
|
||||
bmap->b_inode->i_ino, (unsigned long long)ptr);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user