summaryrefslogtreecommitdiff
path: root/backport/backport-include/linux/printk.h
diff options
context:
space:
mode:
Diffstat (limited to 'backport/backport-include/linux/printk.h')
-rw-r--r--backport/backport-include/linux/printk.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/backport/backport-include/linux/printk.h b/backport/backport-include/linux/printk.h
index 88989a9c..d8083ac6 100644
--- a/backport/backport-include/linux/printk.h
+++ b/backport/backport-include/linux/printk.h
@@ -138,6 +138,14 @@ do { \
#endif
#endif /* pr_debug_ratelimited */
+/* replace hex_dump_to_buffer() with a version which returns the length */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,0,0)
+#define hex_dump_to_buffer LINUX_BACKPORT(hex_dump_to_buffer)
+extern int hex_dump_to_buffer(const void *buf, size_t len, int rowsize,
+ int groupsize, char *linebuf, size_t linebuflen,
+ bool ascii);
+#endif
+
#endif /* _COMPAT_LINUX_PRINTK_H */
/* This must be outside -- see also kernel.h */