summaryrefslogtreecommitdiffstats
path: root/fs/cramfs/uncompress.c
diff options
context:
space:
mode:
authorFabian Frederick2014-08-08 23:22:48 +0200
committerLinus Torvalds2014-08-09 00:57:25 +0200
commitf175ff8100eef0eb4b946c08e78a27bd17ca5896 (patch)
tree3f502964a3b59a8eee7cdbfbe0467581134f0d01 /fs/cramfs/uncompress.c
parenttools/testing/selftests/ptrace/peeksiginfo.c: add PAGE_SIZE definition (diff)
downloadkernel-qcow2-linux-f175ff8100eef0eb4b946c08e78a27bd17ca5896.tar.gz
kernel-qcow2-linux-f175ff8100eef0eb4b946c08e78a27bd17ca5896.tar.xz
kernel-qcow2-linux-f175ff8100eef0eb4b946c08e78a27bd17ca5896.zip
fs/cramfs: convert printk to pr_foo()
Use current logging functions. No level printk converted to pr_err Signed-off-by: Fabian Frederick <fabf@skynet.be> Cc: "Theodore Ts'o" <tytso@mit.edu> Cc: Sasha Levin <sasha.levin@oracle.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/cramfs/uncompress.c')
-rw-r--r--fs/cramfs/uncompress.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/cramfs/uncompress.c b/fs/cramfs/uncompress.c
index 1760c1b84d97..76428ccab157 100644
--- a/fs/cramfs/uncompress.c
+++ b/fs/cramfs/uncompress.c
@@ -37,7 +37,7 @@ int cramfs_uncompress_block(void *dst, int dstlen, void *src, int srclen)
err = zlib_inflateReset(&stream);
if (err != Z_OK) {
- printk("zlib_inflateReset error %d\n", err);
+ pr_err("zlib_inflateReset error %d\n", err);
zlib_inflateEnd(&stream);
zlib_inflateInit(&stream);
}
@@ -48,8 +48,8 @@ int cramfs_uncompress_block(void *dst, int dstlen, void *src, int srclen)
return stream.total_out;
err:
- printk("Error %d while decompressing!\n", err);
- printk("%p(%d)->%p(%d)\n", src, srclen, dst, dstlen);
+ pr_err("Error %d while decompressing!\n", err);
+ pr_err("%p(%d)->%p(%d)\n", src, srclen, dst, dstlen);
return -EIO;
}