
Dear Detlev Zundel,
In message m2ljekyyd5.fsf@ohwell.denx.de you wrote:
printf("mtdparts: %s\n", mtdparts_default ? mtdparts_default : "none"); }
If I understand this correctly, then the real problem is the console code crashing without a warning, correct? If so, then please put such a
True.
warning in the correct place instead of fixing the caller sites.
That's not exactly trivial, if you have a look at the code in "common/console.c" - the printf code has no way to know the size of the provided buffer.
OTOH it might make sense to use the (small, preconfigured) buffer only before relocation, and then, when devices become available, switch to a reasonably sized malloc()ed buffer - say 4 kB? But then - this just shifts the limits...
Best regards,
Wolfgang Denk