summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-07-04 09:14:07 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-07-11 08:15:47 +0200
commit36d3cc49fb556cfbb15d7cf65569b14796f20246 (patch)
tree3e9ebe656269cc06d569b9232a15c7bd20741d52 /lib
parent241c6a017b65a88b1c23c701b32618e3ff5e8e07 (diff)
downloadbarebox-36d3cc49fb556cfbb15d7cf65569b14796f20246.tar.gz
barebox-36d3cc49fb556cfbb15d7cf65569b14796f20246.tar.xz
Add hex_byte_pack and hex_byte_pack_upper from kernel
Utility functions needed by the UUID/GUID printf support. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/misc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/misc.c b/lib/misc.c
index 0f3eb9aabb..9f2067cf36 100644
--- a/lib/misc.c
+++ b/lib/misc.c
@@ -113,3 +113,5 @@ int parse_area_spec(const char *str, loff_t *start, loff_t *size)
return -1;
}
EXPORT_SYMBOL(parse_area_spec);
+
+const char hex_asc[] = "0123456789abcdef";