From: Timo Lindhorst Date: Fri, 26 Jan 2007 10:50:04 +0000 (+0100) Subject: [PATCH] UBI Utils: Fix syntax description for ubiupdatevol X-Git-Tag: v1.1.0~13^2~12 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5327be2927984d4ba365c76a5f4b22839f6e680b;p=mtd-utils.git [PATCH] UBI Utils: Fix syntax description for ubiupdatevol Fix the syntax description in the help and usage messages for ubiupdatevol. Signed-off-by: Timo Lindhorst --- diff --git a/ubi-utils/src/ubiupdatevol.c b/ubi-utils/src/ubiupdatevol.c index b3c4bf1..c0b4178 100644 --- a/ubi-utils/src/ubiupdatevol.c +++ b/ubi-utils/src/ubiupdatevol.c @@ -89,7 +89,7 @@ static const char *optionsstr = static const char *usage = "Usage: ubiupdatevol [-Bt?V] [-d ] [-n ] [--broken-update]\n" " [--devn=] [--vol_id=] [--truncate] [--help]\n" -" [--usage] [--version]\n"; +" [--usage] [--version] \n"; struct option long_options[] = { { .name = "broken-update", .has_arg = 0, .flag = NULL, .val = 'B' }, @@ -144,7 +144,7 @@ parse_opt(int argc, char **argv, struct args *args) case '?': /* help */ fprintf(stderr, "Usage: " - "ubiupdatevol [OPTION...]\n%s%s" + "ubiupdatevol [OPTION...] \n%s%s" "\nReport bugs to %s\n", doc, optionsstr, PACKAGE_BUGREPORT); exit(EXIT_SUCCESS); @@ -239,7 +239,7 @@ ubi_update_volume(struct args *args) } if (fname == NULL) { - fprintf(stderr, "Please specify an existing file.\n"); + fprintf(stderr, "Please specify an existing image file.\n"); exit(EXIT_FAILURE); }