提交 eb9a9a56 编写于 作者: A Alan Stern 提交者: Linus Torvalds

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: NAlan Stern <stern@rowland.harvard.edu>
Cc: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 0c1eafdb
...@@ -226,7 +226,7 @@ extern void print_hex_dump(const char *level, const char *prefix_str, ...@@ -226,7 +226,7 @@ extern void print_hex_dump(const char *level, const char *prefix_str,
int prefix_type, int rowsize, int groupsize, int prefix_type, int rowsize, int groupsize,
const void *buf, size_t len, bool ascii); const void *buf, size_t len, bool ascii);
extern void print_hex_dump_bytes(const char *prefix_str, int prefix_type, extern void print_hex_dump_bytes(const char *prefix_str, int prefix_type,
void *buf, size_t len); const void *buf, size_t len);
#define hex_asc(x) "0123456789abcdef"[x] #define hex_asc(x) "0123456789abcdef"[x]
#ifdef DEBUG #ifdef DEBUG
......
...@@ -189,7 +189,7 @@ EXPORT_SYMBOL(print_hex_dump); ...@@ -189,7 +189,7 @@ EXPORT_SYMBOL(print_hex_dump);
* rowsize of 16, groupsize of 1, and ASCII output included. * rowsize of 16, groupsize of 1, and ASCII output included.
*/ */
void print_hex_dump_bytes(const char *prefix_str, int prefix_type, void print_hex_dump_bytes(const char *prefix_str, int prefix_type,
void *buf, size_t len) const void *buf, size_t len)
{ {
print_hex_dump(KERN_DEBUG, prefix_str, prefix_type, 16, 1, print_hex_dump(KERN_DEBUG, prefix_str, prefix_type, 16, 1,
buf, len, 1); buf, len, 1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册