[U-Boot] [PATCH v4 8/8] sandbox: Add basic command line parsing

Simon Glass sjg at chromium.org
Mon Feb 27 03:50:32 CET 2012


Hi Mike,

On Sun, Feb 26, 2012 at 1:04 PM, Mike Frysinger <vapier at gentoo.org> wrote:
> 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).



More information about the U-Boot mailing list