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/btrfs/zlib.c | |
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/btrfs/zlib.c')
-rw-r--r-- | fs/btrfs/zlib.c | 8 |
1 files changed, 4 insertions, 4 deletions
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 | ||