diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-03-17 22:40:50 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2013-03-17 22:40:50 -0400 |
| commit | 688d794c4c3f8b08c814381ee2edd3ede5856056 (patch) | |
| tree | ef680add71e2a9588d07d8b594edbc1b5cd127d7 /include/linux/dynamic_debug.h | |
| parent | 16142655269aaf580488e074eabfdcf0fb4e3687 (diff) | |
| parent | a937536b868b8369b98967929045f1df54234323 (diff) | |
Merge tag 'v3.9-rc3' into next
Merge with mainline to bring in module_platform_driver_probe() and
devm_ioremap_resource().
Diffstat (limited to 'include/linux/dynamic_debug.h')
| -rw-r--r-- | include/linux/dynamic_debug.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/dynamic_debug.h b/include/linux/dynamic_debug.h index 6dd4787a798a..2fe93b26b42f 100644 --- a/include/linux/dynamic_debug.h +++ b/include/linux/dynamic_debug.h | |||
| @@ -95,6 +95,17 @@ do { \ | |||
| 95 | ##__VA_ARGS__); \ | 95 | ##__VA_ARGS__); \ |
| 96 | } while (0) | 96 | } while (0) |
| 97 | 97 | ||
| 98 | #define dynamic_hex_dump(prefix_str, prefix_type, rowsize, \ | ||
| 99 | groupsize, buf, len, ascii) \ | ||
| 100 | do { \ | ||
| 101 | DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, \ | ||
| 102 | __builtin_constant_p(prefix_str) ? prefix_str : "hexdump");\ | ||
| 103 | if (unlikely(descriptor.flags & _DPRINTK_FLAGS_PRINT)) \ | ||
| 104 | print_hex_dump(KERN_DEBUG, prefix_str, \ | ||
| 105 | prefix_type, rowsize, groupsize, \ | ||
| 106 | buf, len, ascii); \ | ||
| 107 | } while (0) | ||
| 108 | |||
| 98 | #else | 109 | #else |
| 99 | 110 | ||
| 100 | #include <linux/string.h> | 111 | #include <linux/string.h> |
