Commit a060bfe0 authored by Haesung Kim's avatar Haesung Kim Committed by Linus Torvalds

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: default avatarHaesung Kim <matia.kim@lge.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent b5c8afe5
...@@ -44,8 +44,8 @@ struct compress_format { ...@@ -44,8 +44,8 @@ struct compress_format {
}; };
static const struct compress_format compressed_formats[] __initconst = { static const struct compress_format compressed_formats[] __initconst = {
{ {037, 0213}, "gzip", gunzip }, { {0x1f, 0x8b}, "gzip", gunzip },
{ {037, 0236}, "gzip", gunzip }, { {0x1f, 0x9e}, "gzip", gunzip },
{ {0x42, 0x5a}, "bzip2", bunzip2 }, { {0x42, 0x5a}, "bzip2", bunzip2 },
{ {0x5d, 0x00}, "lzma", unlzma }, { {0x5d, 0x00}, "lzma", unlzma },
{ {0xfd, 0x37}, "xz", unxz }, { {0xfd, 0x37}, "xz", unxz },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment