From 3d3fd6ab2c684fd90216a720335874e82a5e8e39 Mon Sep 17 00:00:00 2001 From: Peter Huewe Date: Tue, 25 Jan 2011 00:23:32 +0000 Subject: 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. Corresponding to flashrom svn r1256. Signed-off-by: Peter Huewe Acked-by: Stefan Reinauer --- board_enable.c | 2 +- print.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/board_enable.c b/board_enable.c index d09923a..5776bf5 100644 --- a/board_enable.c +++ b/board_enable.c @@ -1135,7 +1135,7 @@ static int intel_piix4_gpo_set(unsigned int gpo, int raise) 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; } diff --git a/print.c b/print.c index 86b4fb1..7ba2801 100644 --- a/print.c +++ b/print.c @@ -355,7 +355,7 @@ const struct board_info boards_known[] = { 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\%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"), -- cgit v1.1