[U-Boot] [PATCH v4 8/8] sandbox: Add basic command line parsing
Mike Frysinger
vapier at gentoo.org
Sun Feb 26 22:04:33 CET 2012
On Wednesday 15 February 2012 18:51:18 Simon Glass wrote:
> --- a/arch/sandbox/cpu/os.c
> +++ b/arch/sandbox/cpu/os.c
>
> +#include <stdio.h>
>
> +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 <command>\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: <http://lists.denx.de/pipermail/u-boot/attachments/20120226/ed8476c4/attachment.pgp>
More information about the U-Boot
mailing list