- Fix build on alpha.

- Add a missing newline in printf.
This commit is contained in:
Hidetoshi Shimokawa 2003-01-29 02:13:31 +00:00
parent a01bf47081
commit 878db8920f
2 changed files with 3 additions and 4 deletions

View File

@ -1020,10 +1020,9 @@ void fw_sidrcv(struct firewire_comm* fc, caddr_t buf, u_int len, u_int off)
}else{
printf(", cable IRM = %d", fc->irm);
if (fc->irm == fc->nodeid)
printf(" (me)\n");
else
printf("\n");
printf(" (me)");
}
printf("\n");
if (try_bmr && (fc->irm != -1) && (CSRARC(fc, BUS_MGR_ID) == 0x3f)) {
if (fc->irm == ((CSRARC(fc, NODE_IDS) >> 16 ) & 0x3f)) {

View File

@ -662,7 +662,7 @@ fwohci_init(struct fwohci_softc *sc, device_t dev)
device_printf(dev, "sid_buf alloc failed.\n");
return ENOMEM;
}
if (((u_int32_t) sc->fc.sid_buf & (OHCI_SIDSIZE - 1)) != 0) {
if (((vm_offset_t) sc->fc.sid_buf & (OHCI_SIDSIZE - 1)) != 0) {
device_printf(dev, "sid_buf(%p) not aligned.\n",
sc->fc.sid_buf);
return ENOMEM;