
Hi Mike,
[...]
not really. i consider this to be "garbage-in garbage-out". imo, u-boot isnt a C library that should be padded with garbage checking all over. the result only helps broken systems (edge cases) while hindering the rest.
i wouldnt have a problem with adopting an NDEBUG system, or perhaps adding assert()'s to this code. then people can easily opt-out of it all and for the people doing development, can easily turn things on. assert(name != NULL);
While developing, I certainly appreciate 'garbage-in error-out' and as your approach allows this, I believe we have reached a consensus.
the current miiphy system needs to be replaced (this runtime string based approach is crazy), but that's a completely different topic :).
I'm looking forward to your changes :)
Thanks! Detlev