summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Huewe <peterhuewe@gmx.de>2011-01-25 00:23:32 +0000
committerStefan Reinauer <stefan.reinauer@coreboot.org>2011-01-25 00:23:32 +0000
commit3d3fd6ab2c684fd90216a720335874e82a5e8e39 (patch)
treea0155a7b9a098a8ff058d0365affaae7e50fbf78
parent73f8ec8b1e623681c8d6f3a9df142da2a8bed7e3 (diff)
downloadast2050-flashrom-3d3fd6ab2c684fd90216a720335874e82a5e8e39.zip
ast2050-flashrom-3d3fd6ab2c684fd90216a720335874e82a5e8e39.tar.gz
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 <peterhuewe@gmx.de> Acked-by: Stefan Reinauer <stepan@coreboot.org>
-rw-r--r--board_enable.c2
-rw-r--r--print.c2
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"),
OpenPOWER on IntegriCloud