From: Mike Frysinger Date: Sun, 26 Feb 2012 16:04:33 -0500 Subject: [U-Boot] [PATCH v4 8/8] sandbox: Add basic command line parsing In-Reply-To: <1329349878-16664-8-git-send-email-sjg@chromium.org> References: <1329349878-16664-1-git-send-email-sjg@chromium.org> <1329349878-16664-8-git-send-email-sjg@chromium.org> Message-ID: <201202261604.34350.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wednesday 15 February 2012 18:51:18 Simon Glass wrote: > --- a/arch/sandbox/cpu/os.c > +++ b/arch/sandbox/cpu/os.c > > +#include > > +void os_usage(int err) > +{ > + if (err < 0) > + fprintf(stderr, "Try `--help' for more information.\n"); > + fprintf(err < 0 ? stderr : stdout, "u-boot, " > + "a command line test interface to U-Boot\n\n" > + "usage:\tu-boot [-ch]\n" > + "Options:\n" > + "\t-h\tDisplay help\n" > + "\t-c \tExecute U-Boot command\n"); this actually doesn't work. we're using the stdio from u-boot itself, so we can't use stdio.h from glibc. if it works for you, i'm pretty sure it's purely an accident (perhaps related to the fortification change i just posted). -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. URL: