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:
parent
82c06bd2d5
commit
f78c7007c2
|
@ -324,7 +324,7 @@ int get_option_as_string(const struct nvram_accessor *nvram, struct cb_cmos_opti
|
||||||
/* only works on little endian.
|
/* only works on little endian.
|
||||||
26 bytes is enough for a 64bit value in decimal */
|
26 bytes is enough for a 64bit value in decimal */
|
||||||
*dest = malloc(26);
|
*dest = malloc(26);
|
||||||
sprintf(*dest, "%ull", *(u64*)raw);
|
sprintf(*dest, "%llu", *(u64*)raw);
|
||||||
break;
|
break;
|
||||||
case 's':
|
case 's':
|
||||||
*dest = strdup(raw);
|
*dest = strdup(raw);
|
||||||
|
|
Loading…
Reference in New Issue