diff options
author | Joe Perches <joe@perches.com> | 2011-01-12 19:59:47 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-13 11:03:10 -0500 |
commit | ac83ed687837a44c6e46fb16411fb0d299fffd80 (patch) | |
tree | 04abc4db3153056b2c478209bfb8a4c7701d6a5b /lib | |
parent | 16cb839f13324978bd58082e69de81a711802b11 (diff) |
include/linux/printk.h lib/hexdump.c: neatening and add CONFIG_PRINTK guard
- Move prototypes and align arguments.
- Add CONFIG_PRINTK guard for print_hex functions
Signed-off-by: Joe Perches <joe@perches.com>
Cc: Matt Mackall <mpm@selenic.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/hexdump.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/hexdump.c b/lib/hexdump.c index b66b2bd67952..f5fe6ba7a3ab 100644 --- a/lib/hexdump.c +++ b/lib/hexdump.c | |||
@@ -154,6 +154,7 @@ nil: | |||
154 | } | 154 | } |
155 | EXPORT_SYMBOL(hex_dump_to_buffer); | 155 | EXPORT_SYMBOL(hex_dump_to_buffer); |
156 | 156 | ||
157 | #ifdef CONFIG_PRINTK | ||
157 | /** | 158 | /** |
158 | * print_hex_dump - print a text hex dump to syslog for a binary blob of data | 159 | * print_hex_dump - print a text hex dump to syslog for a binary blob of data |
159 | * @level: kernel log level (e.g. KERN_DEBUG) | 160 | * @level: kernel log level (e.g. KERN_DEBUG) |
@@ -238,3 +239,4 @@ void print_hex_dump_bytes(const char *prefix_str, int prefix_type, | |||
238 | buf, len, true); | 239 | buf, len, true); |
239 | } | 240 | } |
240 | EXPORT_SYMBOL(print_hex_dump_bytes); | 241 | EXPORT_SYMBOL(print_hex_dump_bytes); |
242 | #endif | ||