aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/printk.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-02-21 15:05:51 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2013-02-21 15:05:51 -0500
commit06991c28f37ad68e5c03777f5c3b679b56e3dac1 (patch)
tree4be75788e21c3c644fe6d39abf47693a171cf4f8 /include/linux/printk.h
parent460dc1eecf37263c8e3b17685ef236f0d236facb (diff)
parent74fef7a8fd1d2bd94f925d6638bb4c3049e7c381 (diff)
Merge tag 'driver-core-3.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core
Pull driver core patches from Greg Kroah-Hartman: "Here is the big driver core merge for 3.9-rc1 There are two major series here, both of which touch lots of drivers all over the kernel, and will cause you some merge conflicts: - add a new function called devm_ioremap_resource() to properly be able to check return values. - remove CONFIG_EXPERIMENTAL Other than those patches, there's not much here, some minor fixes and updates" Fix up trivial conflicts * tag 'driver-core-3.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (221 commits) base: memory: fix soft/hard_offline_page permissions drivercore: Fix ordering between deferred_probe and exiting initcalls backlight: fix class_find_device() arguments TTY: mark tty_get_device call with the proper const values driver-core: constify data for class_find_device() firmware: Ignore abort check when no user-helper is used firmware: Reduce ifdef CONFIG_FW_LOADER_USER_HELPER firmware: Make user-mode helper optional firmware: Refactoring for splitting user-mode helper code Driver core: treat unregistered bus_types as having no devices watchdog: Convert to devm_ioremap_resource() thermal: Convert to devm_ioremap_resource() spi: Convert to devm_ioremap_resource() power: Convert to devm_ioremap_resource() mtd: Convert to devm_ioremap_resource() mmc: Convert to devm_ioremap_resource() mfd: Convert to devm_ioremap_resource() media: Convert to devm_ioremap_resource() iommu: Convert to devm_ioremap_resource() drm: Convert to devm_ioremap_resource() ...
Diffstat (limited to 'include/linux/printk.h')
-rw-r--r--include/linux/printk.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/printk.h b/include/linux/printk.h
index 86c4b6294713..5bef3045218e 100644
--- a/include/linux/printk.h
+++ b/include/linux/printk.h
@@ -318,8 +318,13 @@ extern void hex_dump_to_buffer(const void *buf, size_t len,
318extern void print_hex_dump(const char *level, const char *prefix_str, 318extern void print_hex_dump(const char *level, const char *prefix_str,
319 int prefix_type, int rowsize, int groupsize, 319 int prefix_type, int rowsize, int groupsize,
320 const void *buf, size_t len, bool ascii); 320 const void *buf, size_t len, bool ascii);
321#if defined(CONFIG_DYNAMIC_DEBUG)
322#define print_hex_dump_bytes(prefix_str, prefix_type, buf, len) \
323 dynamic_hex_dump(prefix_str, prefix_type, 16, 1, buf, len, true)
324#else
321extern void print_hex_dump_bytes(const char *prefix_str, int prefix_type, 325extern void print_hex_dump_bytes(const char *prefix_str, int prefix_type,
322 const void *buf, size_t len); 326 const void *buf, size_t len);
327#endif /* defined(CONFIG_DYNAMIC_DEBUG) */
323#else 328#else
324static inline void print_hex_dump(const char *level, const char *prefix_str, 329static inline void print_hex_dump(const char *level, const char *prefix_str,
325 int prefix_type, int rowsize, int groupsize, 330 int prefix_type, int rowsize, int groupsize,
@@ -333,4 +338,16 @@ static inline void print_hex_dump_bytes(const char *prefix_str, int prefix_type,
333 338
334#endif 339#endif
335 340
341#if defined(CONFIG_DYNAMIC_DEBUG)
342#define print_hex_dump_debug(prefix_str, prefix_type, rowsize, \
343 groupsize, buf, len, ascii) \
344 dynamic_hex_dump(prefix_str, prefix_type, rowsize, \
345 groupsize, buf, len, ascii)
346#else
347#define print_hex_dump_debug(prefix_str, prefix_type, rowsize, \
348 groupsize, buf, len, ascii) \
349 print_hex_dump(KERN_DEBUG, prefix_str, prefix_type, rowsize, \
350 groupsize, buf, len, ascii)
351#endif /* defined(CONFIG_DYNAMIC_DEBUG) */
352
336#endif 353#endif