Re: printk and long long

From: YOSHIFUJI Hideaki / 吉藤英明
Date: Wed Feb 11 2004 - 09:04:22 EST


In article <20040211135456.B33ED2BD4@xxxxxxxxxxxxxxxxxx> (at Wed, 11 Feb 2004 14:54:56 +0100 (CET)), Bart Hartgers <bart@xxxxxxxxxxxxxxxxxx> says:

> On 11 Feb, Maciej Zenczykowski wrote:
> >> how about simply using a shift to output two regular longs, i.e.
> >>
> >> printk("%ld%ld",loff_t >> (sizeof(long) * 8), loff_t << sizeof(long) * 8 >>
> >> sizeof(long) * 8);
> >
> > I'd venture to guess you'd also have to cast the above to long.
:
> And use %lx%lx ?

%08lx%08lx

--yoshfuji
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/