On Thursday 05 September 2002 02:04, Benjamin LaHaise wrote:
> On Thu, Sep 05, 2002 at 09:04:01AM +1000, Peter Chubb wrote:
> > Unfortunately, this doesn't really buy you much ---- standard C type
> > promotion rules mean that whatever (within reason) you pass to
> > llsect() will work without warning.
>
> Not if someone changes a variable to a pointer by accident without
> updating the printk. It does happen.
The thing is, I don't see why we should be building castles and cathedrals
around printk. Just cast to the wider value, if you get it wrong you have
lost exactly what? Are people feeding the output of dmesg into scripts
that their systems depend upon? If so, we need to let evolution do its
work.
If this had something to do with how the kernel worked, it might be worth
inventing a new feature.
-- Daniel - 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/
This archive was generated by hypermail 2b29 : Sat Sep 07 2002 - 22:00:23 EST