Re: [patch] printk and dma_addr_t

David Woodhouse (dwmw2@infradead.org)
Fri, 15 Feb 2002 21:51:16 +0000


hozer@drgw.net said:
> I need something like this for the MTD patch I've got that supports
> 64 bit buswidths on 32 bit machines and needs to printk the data on
> error.

> I found that #define CFI_FMT '%lx' or whatever to be more
> straightforward, and easier to understand.

I got annoyed with the original implementation that turned up in CVS, with
a completely separate printk line #ifdef CFI_WORD_64, and I changed it to
always cast to (long long) before printing. Although I half suspect I'll
end up redoing it again before actually sending it to Linus.

--
dwmw2

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