From 878db8920f6e808f73719fea82500a1c22da69a4 Mon Sep 17 00:00:00 2001 From: Hidetoshi Shimokawa Date: Wed, 29 Jan 2003 02:13:31 +0000 Subject: [PATCH] - Fix build on alpha. - Add a missing newline in printf. --- sys/dev/firewire/firewire.c | 5 ++--- sys/dev/firewire/fwohci.c | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/sys/dev/firewire/firewire.c b/sys/dev/firewire/firewire.c index e555266abbdf..0b93285f8456 100644 --- a/sys/dev/firewire/firewire.c +++ b/sys/dev/firewire/firewire.c @@ -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)) { diff --git a/sys/dev/firewire/fwohci.c b/sys/dev/firewire/fwohci.c index 1161d87adb42..c6516225045c 100644 --- a/sys/dev/firewire/fwohci.c +++ b/sys/dev/firewire/fwohci.c @@ -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;