diff options
-rw-r--r-- | include/linux/kernel.h | 2 | ||||
-rw-r--r-- | lib/hexdump.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 4300bb462d29..b4f5b81b4257 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
@@ -224,7 +224,7 @@ extern void hex_dump_to_buffer(const void *buf, size_t len, | |||
224 | char *linebuf, size_t linebuflen, bool ascii); | 224 | char *linebuf, size_t linebuflen, bool ascii); |
225 | extern void print_hex_dump(const char *level, const char *prefix_str, | 225 | extern void print_hex_dump(const char *level, const char *prefix_str, |
226 | int prefix_type, int rowsize, int groupsize, | 226 | int prefix_type, int rowsize, int groupsize, |
227 | void *buf, size_t len, bool ascii); | 227 | const void *buf, size_t len, bool ascii); |
228 | extern void print_hex_dump_bytes(const char *prefix_str, int prefix_type, | 228 | extern void print_hex_dump_bytes(const char *prefix_str, int prefix_type, |
229 | void *buf, size_t len); | 229 | void *buf, size_t len); |
230 | #define hex_asc(x) "0123456789abcdef"[x] | 230 | #define hex_asc(x) "0123456789abcdef"[x] |
diff --git a/lib/hexdump.c b/lib/hexdump.c index 473f5aed6cae..16f2e2935e87 100644 --- a/lib/hexdump.c +++ b/lib/hexdump.c | |||
@@ -145,9 +145,9 @@ EXPORT_SYMBOL(hex_dump_to_buffer); | |||
145 | */ | 145 | */ |
146 | void print_hex_dump(const char *level, const char *prefix_str, int prefix_type, | 146 | void print_hex_dump(const char *level, const char *prefix_str, int prefix_type, |
147 | int rowsize, int groupsize, | 147 | int rowsize, int groupsize, |
148 | void *buf, size_t len, bool ascii) | 148 | const void *buf, size_t len, bool ascii) |
149 | { | 149 | { |
150 | u8 *ptr = buf; | 150 | const u8 *ptr = buf; |
151 | int i, linelen, remaining = len; | 151 | int i, linelen, remaining = len; |
152 | unsigned char linebuf[200]; | 152 | unsigned char linebuf[200]; |
153 | 153 | ||