Current-Users archive

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

Re: Problems with sys/arch/xen/xen/xbdback_xenbus.c



I thought Christos fixed that yesterday - are your sources up to date?

On Fri, 23 Jan 2009, David Laight wrote:

On Fri, Jan 23, 2009 at 09:42:10PM +0100, Wojciech Galazka wrote:
...
/n4/usr/src/sys/arch/xen/xen/xbdback_xenbus.c:430: warning: format
'%d' expects type 'int', but argument 3 has type 'long long unsigned
int'
...
                printf("xbd backend: detach device %s%"PRId32"%c for domain 
%d\n",
                    devsw_blk2name(major(xbdi->xbdi_dev)),
                    DISKUNIT(xbdi->xbdi_dev),
                    (char)DISKPART(xbdi->xbdi_dev) + 'a',
                    xbdi->xbdi_domid);

Looks like whatever DISKUNIT() expands to, somewhere the 64bit dev_t
should be changed to a 32bit value.

        David

--
David Laight: david%l8s.co.uk@localhost

!DSPAM:497a2cac1791033329176!




-------------------------------------------------------------------------
|   Paul Goyette   | PGP DSS Key fingerprint: |  E-mail addresses:      |
| Customer Service | FA29 0E3B 35AF E8AE 6651 |  paul at whooppee.com   |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
|                  |                          | pgoyette at netbsd.org  |
-------------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index