Somewhat agreed. Also, the above is just not the right way to do
printouts.
I'd suggest rewriting the whole big mess as something like
#define STAT_STR(x,s) \
((stat & x ##_STAT) ? s " " : "")
...
printf("IDE: %s%s%s%s%s%s..\n"
STAT_STR(READY, "DriveReady"),
STAT_STR(WERR, "DeviceFault"),
...
which is pretty certain to generate much smaller code (not to mention
smaller sources).
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/