diff options
author | Daniel M. Weeks <dan@danweeks.net> | 2014-04-07 18:39:16 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-07 19:36:11 -0400 |
commit | 6aa7a29aa8378fa868fabef6a84b0a40d5d9d677 (patch) | |
tree | 42db878266aeaa77a8af91d3ddbbdc8ece3f83a1 /init | |
parent | 16caed319604609a5579df132fce362a456170d7 (diff) |
initramfs: debug detected compression method
This can greatly aid in narrowing down the real source of initramfs
problems such as failures related to the compression of the in-kernel
initramfs when an external initramfs is in use as well. Existing errors
are ambiguous as to which initramfs is a problem and why.
[akpm@linux-foundation.org: use pr_debug()]
Signed-off-by: Daniel M. Weeks <dan@danweeks.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'init')
-rw-r--r-- | init/initramfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/init/initramfs.c b/init/initramfs.c index 93b61396756b..a8497fab1c3d 100644 --- a/init/initramfs.c +++ b/init/initramfs.c | |||
@@ -455,6 +455,7 @@ static char * __init unpack_to_rootfs(char *buf, unsigned len) | |||
455 | } | 455 | } |
456 | this_header = 0; | 456 | this_header = 0; |
457 | decompress = decompress_method(buf, len, &compress_name); | 457 | decompress = decompress_method(buf, len, &compress_name); |
458 | pr_debug("Detected %s compressed data\n", compress_name); | ||
458 | if (decompress) { | 459 | if (decompress) { |
459 | res = decompress(buf, len, NULL, flush_buffer, NULL, | 460 | res = decompress(buf, len, NULL, flush_buffer, NULL, |
460 | &my_inptr, error); | 461 | &my_inptr, error); |