Messages in this thread | | | From | Peter Chubb <> | Date | Fri, 13 Feb 2004 11:26:44 +1100 | Subject | Re: printk and long long |
| |
>>>>> "Richard" == Richard B Johnson <root@chaos.analogic.com> writes:
Richard> On Wed, 11 Feb 2004 wdebruij@dds.nl 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);
Why bother? printk already handles 64-bit types just fine.
Do loff_t x; printk("%lld\n" (long long)x)
You need the cast, because on 64-bit architectures, loff_t is long not long long.
Peter c - 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/
| |