From 2d927fbd7bbfd6d03280757d447991a60c690c6e Mon Sep 17 00:00:00 2001 From: Carl-Daniel Hailfinger Date: Wed, 4 Jan 2012 00:48:27 +0000 Subject: Replace --mainboard with -p internal:mainboard NOTE: The --list-supported-wiki output changed to use -p internal:mainboard= instead of -m The --list-supported output changed the heading of the mainboard list from Vendor Board Status Required option to Vendor Board Status Required value for -p internal:mainboard= Fix lb_vendor_dev_from_string() not to write to the supplied string. Corresponding to flashrom svn r1483. Signed-off-by: Carl-Daniel Hailfinger Acked-by: Stefan Tauner --- print.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'print.c') diff --git a/print.c b/print.c index a94ce6e8..db7ed655 100644 --- a/print.c +++ b/print.c @@ -389,7 +389,10 @@ static void print_supported_boards_helper(const struct board_info *boards, for (i = strlen("Board"); i < maxboardlen; i++) msg_ginfo(" "); - msg_ginfo("Status Required option\n\n"); + msg_ginfo("Status Required value for\n"); + for (i = 0; i < maxvendorlen + maxboardlen + strlen("Status "); i++) + msg_ginfo(" "); + msg_ginfo("-p internal:mainboard=\n"); for (b = boards; b->vendor != NULL; b++) { msg_ginfo("%s", b->vendor); @@ -407,7 +410,7 @@ static void print_supported_boards_helper(const struct board_info *boards, if (e->lb_vendor == NULL) msg_ginfo("(autodetected)"); else - msg_ginfo("-m %s:%s", e->lb_vendor, + msg_ginfo("%s:%s", e->lb_vendor, e->lb_part); } msg_ginfo("\n"); -- cgit v1.2.3