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>
This commit is contained in:
Patrick Georgi 2012-09-26 15:11:48 +02:00 committed by Patrick Georgi
parent 82c06bd2d5
commit f78c7007c2
1 changed files with 1 additions and 1 deletions

View File

@ -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);