aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHaesung Kim <matia.kim@lge.com>2014-12-12 19:58:08 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2014-12-13 15:42:52 -0500
commita060bfe032bcb8522b470f8a7a16e225a9fe5dd6 (patch)
tree4463dd61e506b28a5dd7be8753dd365388e90d0a
parentb5c8afe5be51078a979d86ae5ae78c4ac948063d (diff)
lib/decompress.c: consistency of compress formats for kernel image
Magic number of compress formats for kernel image is defined by two bytes. These numbers are written in hexadecimal number, nevertheless magic number for only gunzip is written in octal number. The formats should be consistent for readability. Therefore, magic numbers for gunzip are also defined by hexadecimal number. Signed-off-by: Haesung Kim <matia.kim@lge.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--lib/decompress.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/decompress.c b/lib/decompress.c
index 37f3c786348f..528ff932d8e4 100644
--- a/lib/decompress.c
+++ b/lib/decompress.c
@@ -44,8 +44,8 @@ struct compress_format {
44}; 44};
45 45
46static const struct compress_format compressed_formats[] __initconst = { 46static const struct compress_format compressed_formats[] __initconst = {
47 { {037, 0213}, "gzip", gunzip }, 47 { {0x1f, 0x8b}, "gzip", gunzip },
48 { {037, 0236}, "gzip", gunzip }, 48 { {0x1f, 0x9e}, "gzip", gunzip },
49 { {0x42, 0x5a}, "bzip2", bunzip2 }, 49 { {0x42, 0x5a}, "bzip2", bunzip2 },
50 { {0x5d, 0x00}, "lzma", unlzma }, 50 { {0x5d, 0x00}, "lzma", unlzma },
51 { {0xfd, 0x37}, "xz", unxz }, 51 { {0xfd, 0x37}, "xz", unxz },