aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2014-09-16 17:36:01 +0100
committerMister Oyster <oysterized@gmail.com>2017-12-22 16:23:43 +0100
commit6e3d2e279cd5ac2fddec491fe83a8ef5366e95ef (patch)
treefeb38a133059429fb86c31fa0dd5d0dd73f4ab74 /include/linux
parent5bf44aaf5cc90f45b4f0e6e57c01bdd6735df392 (diff)
Provide a binary to hex conversion function
Provide a function to convert a buffer of binary data into an unterminated ascii hex string representation of that data. Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Vivek Goyal <vgoyal@redhat.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/kernel.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h
index 78af19954..2798aa467 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -473,6 +473,7 @@ static inline char * __deprecated pack_hex_byte(char *buf, u8 byte)
extern int hex_to_bin(char ch);
extern int __must_check hex2bin(u8 *dst, const char *src, size_t count);
+extern char *bin2hex(char *dst, const void *src, size_t count);
/*
* General tracing related utility functions - trace_printk(),