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>
This commit is contained in:
parent
16472743ef
commit
09915c1dd9
|
@ -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 */
|
/* we know it's at least 2013, when this code was written */
|
||||||
if (edid[0x11] + 90 <= 2013) {
|
if (edid[0x11] + 90 <= 2013) {
|
||||||
c.has_valid_year = 1;
|
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);
|
edid[0x10], edid[0x11] + 1990);
|
||||||
out->week = edid[0x10];
|
out->week = edid[0x10];
|
||||||
out->year = edid[0x11] + 1990;
|
out->year = edid[0x11] + 1990;
|
||||||
|
|
Loading…
Reference in New Issue