[lkml]   [2002]   [Aug]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Large block device patch, part 1 of 9
On Tue, Aug 27, 2002 at 03:23:04PM +0000, Pavel Machek wrote:
> Hi!
> > Then the following works properly without ugly casts or warnings:
> >
> > __u64 val = 1;
> >
> > printk("at least "PFU64" of your u64s are belong to us\n", val);
> Casts are ugly but this looks even worse. I'd go for casts.

Casts override the few type checking abilities the compiler gives us. At
least with the PFU64 style, we'll get warnings when someone changes a variable
into a pointer without remembering to update the printk.

"You will be reincarnated as a toad; and you will be much happier."
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:28    [W:0.102 / U:0.400 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site