summaryrefslogtreecommitdiff
path: root/include/linux/kernel.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2014-09-16 17:36:01 +0100
committerDavid Howells <dhowells@redhat.com>2014-09-16 17:36:01 +0100
commit53d91c5ce0cb8945b55e8bb54e551cabc51eb28d (patch)
treea5b0bd8059a4b2c7a564b8eb1aa6c50c9f1996fd /include/linux/kernel.h
parent1c9c115ccc76d313f1a9232ffb903de325b64943 (diff)
downloadlwn-53d91c5ce0cb8945b55e8bb54e551cabc51eb28d.tar.gz
lwn-53d91c5ce0cb8945b55e8bb54e551cabc51eb28d.zip
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/kernel.h')
-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 4c52907a6d8b..89a0b8e5a952 100644
--- a/include/linux/kernel.h
+++ b/include/linux/kernel.h
@@ -500,6 +500,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);
int mac_pton(const char *s, u8 *mac);