diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/kernel.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 8645181fca0f..eec0d13169a6 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
@@ -213,6 +213,17 @@ extern enum system_states { | |||
213 | 213 | ||
214 | extern void dump_stack(void); | 214 | extern void dump_stack(void); |
215 | 215 | ||
216 | enum { | ||
217 | DUMP_PREFIX_NONE, | ||
218 | DUMP_PREFIX_ADDRESS, | ||
219 | DUMP_PREFIX_OFFSET | ||
220 | }; | ||
221 | extern void hex_dump_to_buffer(const void *buf, size_t len, char *linebuf, | ||
222 | size_t linebuflen); | ||
223 | extern void print_hex_dump(const char *level, int prefix_type, | ||
224 | void *buf, size_t len); | ||
225 | #define hex_asc(x) "0123456789abcdef"[x] | ||
226 | |||
216 | #ifdef DEBUG | 227 | #ifdef DEBUG |
217 | /* If you are writing a driver, please use dev_dbg instead */ | 228 | /* If you are writing a driver, please use dev_dbg instead */ |
218 | #define pr_debug(fmt,arg...) \ | 229 | #define pr_debug(fmt,arg...) \ |