commands: loady: fix Y-Modem/G option name in help message
PATCH 1/1 commands: loady: fix Y-Modem/G option name in help message
Actually loady command uses '-g' option for Y-Modem/G mode selection; see loady() function:
while ((opt = getopt(argc, argv, "b:t:g")) > 0) {
switch (opt) {
...
case 'g':
is_ymodemg = 1;
break;By mistake help message show '-y' option for Y-Modem/G mode selection.
This patch fixes the problem.
Signed-off-by Antony Pavlov <[email protected]>
--- commands/loadxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
commands/loadxy.c +1 -1
@@ -241,7 +241,7 @@ BAREBOX_CMD_ENDstatic const __maybe_unused char cmd_loady_help[] ="[OPTIONS]\n" -" -y - use Y-Modem/G (only for lossless tty as USB)\n" +" -g - use Y-Modem/G (only for lossless tty as USB)\n" " -t name - console device name to use - defaults to current console\n" " -b baud - baudrate at which to download - defaults to console baudrate\n" ;
Signature · 7 lines
1.9.0 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
AppliedQuoted 10 lines · Antony Pavlov
Actually loady command uses '-g' option for Y-Modem/G mode selection; see
loady()function:while ((opt = getopt(argc, argv, "b:t:g")) > 0) { switch (opt) { ... case 'g': is_ymodemg = 1; break;
Quoted 6 lines
By mistake help message show '-y' option for Y-Modem/G mode selection.
This patch fixes the problem.
Signed-off-by Antony Pavlov <[email protected]>
Applied, thanks
Sascha
Quoted 26 lines
--- commands/loadxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)commands/loadxy.c +1
-1@@ -241,7 +241,7 @@ BAREBOX_CMD_ENDstatic const __maybe_unused char cmd_loady_help[] ="[OPTIONS]\n" -" -y - use Y-Modem/G (only for lossless tty as USB)\n" +" -g - use Y-Modem/G (only for lossless tty as USB)\n" " -t name - console device name to use - defaults to current console\n" " -b baud - baudrate at which to download - defaults to console baudrate\n" ;Signature · 7 lines
1.9.0 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox