- remove trailing whitespace

- fix compile warnings. badaddr() will go to a header file soon.
This commit is contained in:
Peter Grehan 2004-02-11 07:44:56 +00:00
parent 7c2779715c
commit 475a183dd1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=125688

View file

@ -54,6 +54,8 @@
#include "pcib_if.h"
int badaddr(void *, size_t); /* XXX */
/*
* Device interface.
*/
@ -276,7 +278,7 @@ grackle_read_config(device_t dev, u_int bus, u_int slot, u_int func, u_int reg,
* to catch these.
*/
if (bus > 0) {
if (badaddr(sc->sc_data, 4)) {
if (badaddr((void *)sc->sc_data, 4)) {
return (retval);
}
}
@ -448,7 +450,7 @@ grackle_activate_resource(device_t bus, device_t child, int type, int rid,
start += sc->sc_iostart;
if (bootverbose)
printf("grackle mapdev: start %x, len %x\n", start,
printf("grackle mapdev: start %x, len %ld\n", start,
rman_get_size(res));
p = pmap_mapdev(start, (vm_size_t)rman_get_size(res));