Current-Users archive

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

Re: Current fails in MONOLITHIC

On Sun, 24 Jul 2011 20:35:09 -0700, Paul Newhouse wrote:
Where did I go wrong?

  : uname -a
NetBSD pimin 5.99.52 NetBSD 5.99.52 (MONOLITHIC) #1: Sat May 28 12:55:20 PDT
2011  root@pimin:/glorp/obj/sys/arch/i386/compile/MONOLITHIC i386

/usr src from head

  :cvs update -Pd

Run just before build was attempted.

Snipped, to emphasize the problem:

  --- cxdtv.o ---
/glorp/src/sys/dev/pci/cxdtv.c: In function 'cxdtv_dtv_start_transfer': /glorp/src/sys/dev/pci/cxdtv.c:670: warning: format '%016lx' expects
    type 'long unsigned int', but argument 3 has type 'bus_addr_t'
  *** [cxdtv.o] Error code 1

bus_addr_t is a physical address (paddr_t), and with PAE, it's a 64 bits entity.

You should use PRIxPADDR to print paddr_t/bus_addr_t entities, it will automagically use the proper specifier.

Jean-Yves Migeon

Home | Main Index | Thread Index | Old Index