[U-Boot] [RESEND PATCH v3] Add assert() for debug assertions

Mike Frysinger vapier at gentoo.org
Sun Oct 23 07:35:23 CEST 2011


On Fri, Oct 21, 2011 at 18:20, Wolfgang Denk wrote:
> Simon Glass wrote:
>> +void __assert_fail(const char *assertion, const char *file, unsigned line,
>> +                const char *function)
>> +{
>> +     /* This will not return */
>> +     panic("%s:%u: %s: Assertion `%s' failed.", file, line, function,
>> +           assertion);
>> +}
>
> Can you please #ifdef it so it doesn't get added for the non-debug
> case, too?

most arches are building with --gc-sections now which means there is
no overhead added for them.  should we look at fixing the few holdouts
rather than adding #ifdefs ?
-mike


More information about the U-Boot mailing list