Commit eb9a9a56316f4fea98ee32873ccbf7098b7bd69b
Committed by
Linus Torvalds
1 parent
0c1eafdb06
Exists in
master
and in
39 other branches
hex_dump: add missing "const" qualifiers
Add missing "const" qualifiers to the print_hex_dump_bytes() library routines. (akpm: rumoured to fix some compile warning somewhere) Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Cc: Artem Bityutskiy <Artem.Bityutskiy@nokia.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Showing 2 changed files with 2 additions and 2 deletions Side-by-side Diff
include/linux/kernel.h
... | ... | @@ -226,7 +226,7 @@ |
226 | 226 | int prefix_type, int rowsize, int groupsize, |
227 | 227 | const void *buf, size_t len, bool ascii); |
228 | 228 | extern void print_hex_dump_bytes(const char *prefix_str, int prefix_type, |
229 | - void *buf, size_t len); | |
229 | + const void *buf, size_t len); | |
230 | 230 | #define hex_asc(x) "0123456789abcdef"[x] |
231 | 231 | |
232 | 232 | #ifdef DEBUG |
lib/hexdump.c
... | ... | @@ -189,7 +189,7 @@ |
189 | 189 | * rowsize of 16, groupsize of 1, and ASCII output included. |
190 | 190 | */ |
191 | 191 | void print_hex_dump_bytes(const char *prefix_str, int prefix_type, |
192 | - void *buf, size_t len) | |
192 | + const void *buf, size_t len) | |
193 | 193 | { |
194 | 194 | print_hex_dump(KERN_DEBUG, prefix_str, prefix_type, 16, 1, |
195 | 195 | buf, len, 1); |