Skip to content

Commit 4b25bbf

Browse files
Coly Liaxboe
authored andcommitted
bcache: pr_info() format clean up in bcache_device_init()
scripts/checkpatch.pl reports following warning for patch ("bcache: check and adjust logical block size for backing devices"), WARNING: quoted string split across lines #146: FILE: drivers/md/bcache/super.c:896: + pr_info("%s: sb/logical block size (%u) greater than page size " + "(%lu) falling back to device logical block size (%u)", There are two things to fix up, - The kernel message print should be in a single line. - pr_info() won't automatically add new line since v5.8, a '\n' should be added. This patch just does the above cleanup in bcache_device_init(). Signed-off-by: Coly Li <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent ee4a36f commit 4b25bbf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/md/bcache/super.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -893,8 +893,7 @@ static int bcache_device_init(struct bcache_device *d, unsigned int block_size,
893893
* This should only happen with BCACHE_SB_VERSION_BDEV.
894894
* Block/page size is checked for BCACHE_SB_VERSION_CDEV.
895895
*/
896-
pr_info("%s: sb/logical block size (%u) greater than page size "
897-
"(%lu) falling back to device logical block size (%u)",
896+
pr_info("%s: sb/logical block size (%u) greater than page size (%lu) falling back to device logical block size (%u)\n",
898897
d->disk->disk_name, q->limits.logical_block_size,
899898
PAGE_SIZE, bdev_logical_block_size(cached_bdev));
900899

0 commit comments

Comments
 (0)