This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
Bug in iopeek
- From: Gary Thomas <gary at mlbassoc dot com>
- To: eCos patches <ecos-patches at ecos dot sourceware dot org>
- Date: Mon, 17 Oct 2005 15:04:33 -0600
- Subject: Bug in iopeek
- Organization: MLB Associates
Wrong number of options
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
Index: redboot/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/redboot/current/ChangeLog,v
retrieving revision 1.235
diff -u -5 -p -r1.235 ChangeLog
--- redboot/current/ChangeLog 9 Sep 2005 13:26:01 -0000 1.235
+++ redboot/current/ChangeLog 17 Oct 2005 20:57:33 -0000
@@ -1,5 +1,9 @@
+2005-10-17 Gary Thomas <gary@mlbassoc.com>
+
+ * src/iomem.c (do_iopeek): Correct number of options.
+
2005-09-09 Andrew Dyer <adyer@righthandtech.com>
* src/load.c: add calls to redboot_getc_terminate before exiting
load_elf_image() in various error scenarios, change the final call
to redboot_getc_terminate to have the error flag set. This will
Index: redboot/current/src/iomem.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/redboot/current/src/iomem.c,v
retrieving revision 1.2
diff -u -5 -p -r1.2 iomem.c
--- redboot/current/src/iomem.c 27 Jun 2005 18:17:37 -0000 1.2
+++ redboot/current/src/iomem.c 17 Oct 2005 20:57:06 -0000
@@ -137,11 +137,11 @@ do_iopeek(int argc, char *argv[])
&set_32bit, 0, "output 32 bit units");
init_opts(&opts[2], '2', false, OPTION_ARG_TYPE_FLG,
&set_16bit, 0, "output 16 bit units");
init_opts(&opts[3], '1', false, OPTION_ARG_TYPE_FLG,
&set_8bit, 0, "output 8 bit units");
- if (!scan_opts(argc, argv, 1, opts, 5, 0, 0, "")) {
+ if (!scan_opts(argc, argv, 1, opts, 4, 0, 0, "")) {
return;
}
if (!base_set) {
diag_printf("iopeek what <location>?\n");
return;