|
@@ -16,6 +16,7 @@
|
|
|
#include <linux/types.h>
|
|
|
#include <linux/string.h>
|
|
|
#include <linux/init.h>
|
|
|
+#include <linux/printk.h>
|
|
|
|
|
|
#ifndef CONFIG_DECOMPRESS_GZIP
|
|
|
# define gunzip NULL
|
|
@@ -61,6 +62,8 @@ decompress_fn __init decompress_method(const unsigned char *inbuf, int len,
|
|
|
if (len < 2)
|
|
|
return NULL; /* Need at least this much... */
|
|
|
|
|
|
+ pr_debug("Compressed data magic: %#.2x %#.2x\n", inbuf[0], inbuf[1]);
|
|
|
+
|
|
|
for (cf = compressed_formats; cf->name; cf++) {
|
|
|
if (!memcmp(inbuf, cf->magic, 2))
|
|
|
break;
|