summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>2014-12-21 02:54:33 -0600
committerAlexandru Gagniuc <mr.nuke.me@gmail.com>2014-12-22 06:20:18 +0100
commit09915c1dd9b38e5c1a722b1072c1a31a149c8e5e (patch)
tree72804967a78e0c7b722f4fe93d4867d56f5f096c /src/lib
parent16472743ef1498b2301fc9998fc5ac4ce8169766 (diff)
downloadcoreboot-09915c1dd9b38e5c1a722b1072c1a31a149c8e5e.tar.xz
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 <mr.nuke.me@gmail.com> Reviewed-on: http://review.coreboot.org/7885 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/edid.c2
1 files changed, 1 insertions, 1 deletions
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;