Re: printk and long long

From: Bart Hartgers
Date: Wed Feb 11 2004 - 08:56:13 EST


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.
>
> Cheers,
> MaZe.

And use %lx%lx ?

>
> -
> 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/

--
Bart Hartgers - TUE Eindhoven
http://plasimo.phys.tue.nl/bart/contact.html
-
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/