Re: [PATCH] add new DMA_ADDR_T_SIZE define

Jeff Garzik (jgarzik@pobox.com)
Wed, 19 Feb 2003 16:48:17 -0500


On Wed, Feb 19, 2003 at 02:06:12PM -0800, David S. Miller wrote:
> On Wed, 2003-02-19 at 09:20, Randy.Dunlap wrote:
> > Does this help with being able to printk() a <dma_addr_t>? How?
> > Always use a cast to (u64) or something else?
>
> One should always cast to long long and use %llx. There is no
> printf format appropriate for a 'u64'.

/me wishes gcc would let the user application define printf formats
for arbitrary [non-struct] user data types...

Jeff

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