Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/dev/pci

> Modified Files:
>       src/sys/dev/pci: if_wm.c
> Log Message:
> Use PRIxPADDR to print a DMA address. This fix a problem that if_wm.c
> can't compile with WM_DEBUG on non-64bit platforms.

sizeof(paddr_t) != sizeof(bus_addr_t) at least on sparc,
so using PRIx64 with an explicit (uint64_t) cast is safer,
I think.
(someone might claim we should add PRIxBUSADDRfoo, though)

Izumi Tsutsui

Home | Main Index | Thread Index | Old Index