From f78c7007c25bfc7d7fe9aeb42c70751bb7e74900 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Wed, 26 Sep 2012 15:11:48 +0200 Subject: libpayload: fix fetching integers from CMOS as string %ull -> %llu Change-Id: I330f681d713be7eb444870f81330cf6e9869a4fa Signed-off-by: Patrick Georgi Reviewed-on: http://review.coreboot.org/1542 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- payloads/libpayload/drivers/options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'payloads') 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); -- cgit v1.2.3