Author: stepan Date: Tue Jan 25 01:23:32 2011 New Revision: 1256 URL: http://flashrom.org/trac/flashrom/changeset/1256
Log: flashrom: fix sparse warning: Unknown escape %
This patch fixes wrong escaping of %. In print.c %%2b is correct instead of %2b ("%%2b"=%2b=+) In board_enable.c %d is correct instead of %d.
Signed-off-by: Peter Huewe peterhuewe@gmx.de Acked-by: Stefan Reinauer stepan@coreboot.org
Modified: trunk/board_enable.c trunk/print.c
Modified: trunk/board_enable.c ============================================================================== --- trunk/board_enable.c Mon Jan 24 20:15:51 2011 (r1255) +++ trunk/board_enable.c Tue Jan 25 01:23:32 2011 (r1256) @@ -1135,7 +1135,7 @@
if ( (((1 << gpo) & nonmuxed_gpos) == 0) && (pci_read_word(dev, piix4_gpo[gpo].reg) & piix4_gpo[gpo].mask) != piix4_gpo[gpo].value ) { - msg_perr("\nERROR: PIIX4 GPO%d not programmed for output.\n", gpo); + msg_perr("\nERROR: PIIX4 GPO%d not programmed for output.\n", gpo); return -1; }
Modified: trunk/print.c ============================================================================== --- trunk/print.c Mon Jan 24 20:15:51 2011 (r1255) +++ trunk/print.c Tue Jan 25 01:23:32 2011 (r1256) @@ -355,7 +355,7 @@ B("ASRock", "775i65G", 1, "http://www.asrock.com/mb/overview.asp?Model=775i65G", NULL), B("ASRock", "939A785GMH/128M", 1, "http://www.asrock.com/mb/overview.asp?Model=939A785GMH/128M&s=939", NULL), B("ASRock", "A330GC", 1, "http://www.asrock.com/mb/overview.asp?Model=A330GC", NULL), - B("ASRock", "A770CrossFire", 1, "http://www.asrock.com/mb/overview.asp?Model=A770CrossFire&s=AM2%5C%2b", NULL), + B("ASRock", "A770CrossFire", 1, "http://www.asrock.com/mb/overview.asp?Model=A770CrossFire&s=AM2%%2b", NULL), B("ASRock", "ALiveNF6G-DVI", 1, "http://www.asrock.com/mb/overview.asp?Model=ALiveNF6G-DVI", NULL), B("ASRock", "K7S41", 1, "http://www.asrock.com/mb/overview.asp?Model=K7S41", NULL), B("ASRock", "K7VT4A+", 0, "http://www.asrock.com/mb/overview.asp?Model=K7VT4A%%2b&s=", "No chip found, probably due to flash translation. http://www.flashrom.org/pipermail/flashrom/2009-August/000393.html"),