diff options
author | Daniel J Blueman <daniel@quora.org> | 2012-05-07 08:35:38 -0400 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2012-10-09 09:19:57 -0400 |
commit | 489406626c42c0176fddae2182d33be2cfb9840c (patch) | |
tree | 5dc8add2202cf40e705d669bd5645776c30d156b /fs | |
parent | 94edf4ae43a5f9405fe3570f670e26ce1b188476 (diff) |
btrfs: fix message printing
Fix various messages to include newline and module prefix.
Signed-off-by: Daniel J Blueman <daniel@quora.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/btrfs/super.c | 8 | ||||
-rw-r--r-- | fs/btrfs/volumes.c | 6 | ||||
-rw-r--r-- | fs/btrfs/zlib.c | 8 |
3 files changed, 11 insertions, 11 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c index f8b803f30ed8..0fadcdba8ce4 100644 --- a/fs/btrfs/super.c +++ b/fs/btrfs/super.c | |||
@@ -243,7 +243,7 @@ void __btrfs_abort_transaction(struct btrfs_trans_handle *trans, | |||
243 | struct btrfs_root *root, const char *function, | 243 | struct btrfs_root *root, const char *function, |
244 | unsigned int line, int errno) | 244 | unsigned int line, int errno) |
245 | { | 245 | { |
246 | WARN_ONCE(1, KERN_DEBUG "btrfs: Transaction aborted"); | 246 | WARN_ONCE(1, KERN_DEBUG "btrfs: Transaction aborted\n"); |
247 | trans->aborted = errno; | 247 | trans->aborted = errno; |
248 | /* Nothing used. The other threads that have joined this | 248 | /* Nothing used. The other threads that have joined this |
249 | * transaction may be able to continue. */ | 249 | * transaction may be able to continue. */ |
@@ -549,11 +549,11 @@ int btrfs_parse_options(struct btrfs_root *root, char *options) | |||
549 | btrfs_set_opt(info->mount_opt, ENOSPC_DEBUG); | 549 | btrfs_set_opt(info->mount_opt, ENOSPC_DEBUG); |
550 | break; | 550 | break; |
551 | case Opt_defrag: | 551 | case Opt_defrag: |
552 | printk(KERN_INFO "btrfs: enabling auto defrag"); | 552 | printk(KERN_INFO "btrfs: enabling auto defrag\n"); |
553 | btrfs_set_opt(info->mount_opt, AUTO_DEFRAG); | 553 | btrfs_set_opt(info->mount_opt, AUTO_DEFRAG); |
554 | break; | 554 | break; |
555 | case Opt_recovery: | 555 | case Opt_recovery: |
556 | printk(KERN_INFO "btrfs: enabling auto recovery"); | 556 | printk(KERN_INFO "btrfs: enabling auto recovery\n"); |
557 | btrfs_set_opt(info->mount_opt, RECOVERY); | 557 | btrfs_set_opt(info->mount_opt, RECOVERY); |
558 | break; | 558 | break; |
559 | case Opt_skip_balance: | 559 | case Opt_skip_balance: |
@@ -1602,7 +1602,7 @@ static int btrfs_interface_init(void) | |||
1602 | static void btrfs_interface_exit(void) | 1602 | static void btrfs_interface_exit(void) |
1603 | { | 1603 | { |
1604 | if (misc_deregister(&btrfs_misc) < 0) | 1604 | if (misc_deregister(&btrfs_misc) < 0) |
1605 | printk(KERN_INFO "misc_deregister failed for control device"); | 1605 | printk(KERN_INFO "btrfs: misc_deregister failed for control device\n"); |
1606 | } | 1606 | } |
1607 | 1607 | ||
1608 | static int __init init_btrfs_fs(void) | 1608 | static int __init init_btrfs_fs(void) |
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 4f4de51b5bdd..dfe5e3a22f55 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c | |||
@@ -639,7 +639,7 @@ static int __btrfs_open_devices(struct btrfs_fs_devices *fs_devices, | |||
639 | 639 | ||
640 | bdev = blkdev_get_by_path(device->name->str, flags, holder); | 640 | bdev = blkdev_get_by_path(device->name->str, flags, holder); |
641 | if (IS_ERR(bdev)) { | 641 | if (IS_ERR(bdev)) { |
642 | printk(KERN_INFO "open %s failed\n", device->name->str); | 642 | printk(KERN_INFO "btrfs: open %s failed\n", device->name->str); |
643 | goto error; | 643 | goto error; |
644 | } | 644 | } |
645 | filemap_write_and_wait(bdev->bd_inode->i_mapping); | 645 | filemap_write_and_wait(bdev->bd_inode->i_mapping); |
@@ -3769,7 +3769,7 @@ static int __btrfs_map_block(struct btrfs_mapping_tree *map_tree, int rw, | |||
3769 | read_unlock(&em_tree->lock); | 3769 | read_unlock(&em_tree->lock); |
3770 | 3770 | ||
3771 | if (!em) { | 3771 | if (!em) { |
3772 | printk(KERN_CRIT "unable to find logical %llu len %llu\n", | 3772 | printk(KERN_CRIT "btrfs: unable to find logical %llu len %llu\n", |
3773 | (unsigned long long)logical, | 3773 | (unsigned long long)logical, |
3774 | (unsigned long long)*length); | 3774 | (unsigned long long)*length); |
3775 | BUG(); | 3775 | BUG(); |
@@ -4226,7 +4226,7 @@ int btrfs_map_bio(struct btrfs_root *root, int rw, struct bio *bio, | |||
4226 | 4226 | ||
4227 | total_devs = bbio->num_stripes; | 4227 | total_devs = bbio->num_stripes; |
4228 | if (map_length < length) { | 4228 | if (map_length < length) { |
4229 | printk(KERN_CRIT "mapping failed logical %llu bio len %llu " | 4229 | printk(KERN_CRIT "btrfs: mapping failed logical %llu bio len %llu " |
4230 | "len %llu\n", (unsigned long long)logical, | 4230 | "len %llu\n", (unsigned long long)logical, |
4231 | (unsigned long long)length, | 4231 | (unsigned long long)length, |
4232 | (unsigned long long)map_length); | 4232 | (unsigned long long)map_length); |
diff --git a/fs/btrfs/zlib.c b/fs/btrfs/zlib.c index 92c20654cc55..9acb846c3e7f 100644 --- a/fs/btrfs/zlib.c +++ b/fs/btrfs/zlib.c | |||
@@ -97,7 +97,7 @@ static int zlib_compress_pages(struct list_head *ws, | |||
97 | *total_in = 0; | 97 | *total_in = 0; |
98 | 98 | ||
99 | if (Z_OK != zlib_deflateInit(&workspace->def_strm, 3)) { | 99 | if (Z_OK != zlib_deflateInit(&workspace->def_strm, 3)) { |
100 | printk(KERN_WARNING "deflateInit failed\n"); | 100 | printk(KERN_WARNING "btrfs: deflateInit failed\n"); |
101 | ret = -1; | 101 | ret = -1; |
102 | goto out; | 102 | goto out; |
103 | } | 103 | } |
@@ -125,7 +125,7 @@ static int zlib_compress_pages(struct list_head *ws, | |||
125 | while (workspace->def_strm.total_in < len) { | 125 | while (workspace->def_strm.total_in < len) { |
126 | ret = zlib_deflate(&workspace->def_strm, Z_SYNC_FLUSH); | 126 | ret = zlib_deflate(&workspace->def_strm, Z_SYNC_FLUSH); |
127 | if (ret != Z_OK) { | 127 | if (ret != Z_OK) { |
128 | printk(KERN_DEBUG "btrfs deflate in loop returned %d\n", | 128 | printk(KERN_DEBUG "btrfs: deflate in loop returned %d\n", |
129 | ret); | 129 | ret); |
130 | zlib_deflateEnd(&workspace->def_strm); | 130 | zlib_deflateEnd(&workspace->def_strm); |
131 | ret = -1; | 131 | ret = -1; |
@@ -252,7 +252,7 @@ static int zlib_decompress_biovec(struct list_head *ws, struct page **pages_in, | |||
252 | } | 252 | } |
253 | 253 | ||
254 | if (Z_OK != zlib_inflateInit2(&workspace->inf_strm, wbits)) { | 254 | if (Z_OK != zlib_inflateInit2(&workspace->inf_strm, wbits)) { |
255 | printk(KERN_WARNING "inflateInit failed\n"); | 255 | printk(KERN_WARNING "btrfs: inflateInit failed\n"); |
256 | return -1; | 256 | return -1; |
257 | } | 257 | } |
258 | while (workspace->inf_strm.total_in < srclen) { | 258 | while (workspace->inf_strm.total_in < srclen) { |
@@ -336,7 +336,7 @@ static int zlib_decompress(struct list_head *ws, unsigned char *data_in, | |||
336 | } | 336 | } |
337 | 337 | ||
338 | if (Z_OK != zlib_inflateInit2(&workspace->inf_strm, wbits)) { | 338 | if (Z_OK != zlib_inflateInit2(&workspace->inf_strm, wbits)) { |
339 | printk(KERN_WARNING "inflateInit failed\n"); | 339 | printk(KERN_WARNING "btrfs: inflateInit failed\n"); |
340 | return -1; | 340 | return -1; |
341 | } | 341 | } |
342 | 342 | ||