summaryrefslogtreecommitdiff
path: root/payloads/libpayload/drivers/options.c
diff options
context:
space:
mode:
authorPatrick Georgi <patrick.georgi@secunet.com>2012-09-26 15:11:48 +0200
committerPatrick Georgi <patrick@georgi-clan.de>2012-09-28 14:49:33 +0200
commitf78c7007c25bfc7d7fe9aeb42c70751bb7e74900 (patch)
tree52c3a27fe9517fb3e530a4d9d21d14c2fa9cb924 /payloads/libpayload/drivers/options.c
parent82c06bd2d5093f9d26c9da4fa1d65828972c4c9b (diff)
downloadcoreboot-f78c7007c25bfc7d7fe9aeb42c70751bb7e74900.tar.xz
libpayload: fix fetching integers from CMOS as string
%ull -> %llu Change-Id: I330f681d713be7eb444870f81330cf6e9869a4fa Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com> Reviewed-on: http://review.coreboot.org/1542 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'payloads/libpayload/drivers/options.c')
-rw-r--r--payloads/libpayload/drivers/options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/payloads/libpayload/drivers/options.c b/payloads/libpayload/drivers/options.c
index eac4a0c519..7122464447 100644
--- a/payloads/libpayload/drivers/options.c
+++ b/payloads/libpayload/drivers/options.c
@@ -324,7 +324,7 @@ int get_option_as_string(const struct nvram_accessor *nvram, struct cb_cmos_opti
/* only works on little endian.
26 bytes is enough for a 64bit value in decimal */
*dest = malloc(26);
- sprintf(*dest, "%ull", *(u64*)raw);
+ sprintf(*dest, "%llu", *(u64*)raw);
break;
case 's':
*dest = strdup(raw);