From 09915c1dd9b38e5c1a722b1072c1a31a149c8e5e Mon Sep 17 00:00:00 2001 From: Alexandru Gagniuc Date: Sun, 21 Dec 2014 02:54:33 -0600 Subject: lib/edid.c: Fix mismatch between format string and variable type Use 'd' instead of 'hhd' when printing absolute year of manufacture. This is the correct type in this case, as the result is autoatically promoted to int. Change-Id: Ice4155bb1a04f206ae55c45c260089d6971b77d1 Signed-off-by: Alexandru Gagniuc Reviewed-on: http://review.coreboot.org/7885 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan --- src/lib/edid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/edid.c b/src/lib/edid.c index 7db1bc3f37..c047b51834 100644 --- a/src/lib/edid.c +++ b/src/lib/edid.c @@ -1011,7 +1011,7 @@ int decode_edid(unsigned char *edid, int size, struct edid *out) /* we know it's at least 2013, when this code was written */ if (edid[0x11] + 90 <= 2013) { c.has_valid_year = 1; - printk(BIOS_SPEW, "Made week %hhd of %hhd\n", + printk(BIOS_SPEW, "Made week %hhd of %d\n", edid[0x10], edid[0x11] + 1990); out->week = edid[0x10]; out->year = edid[0x11] + 1990; -- cgit v1.2.3