From c6e26a4aebb0a142b48b97b33d6fe7feda8854ca Mon Sep 17 00:00:00 2001 From: aiju Date: Sat, 23 Apr 2011 10:09:09 +0200 Subject: [PATCH] fixed compiler warnings in BCM driver --- sys/src/9/pc/etherbcm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/src/9/pc/etherbcm.c b/sys/src/9/pc/etherbcm.c index 2da03fde2..67d7c2a4a 100644 --- a/sys/src/9/pc/etherbcm.c +++ b/sys/src/9/pc/etherbcm.c @@ -329,7 +329,6 @@ static void bcmtransclean(Ether *edev) { Ctlr *ctlr; - ulong incr; ctlr = edev->ctlr; ilock(&ctlr->txlock); @@ -378,7 +377,7 @@ bcmerror(Ether *edev) ctlr = edev->ctlr; if(csr32(ctlr, FlowAttention)) { if(csr32(ctlr, FlowAttention) & 0xF8FF8080UL) { - panic("bcm: fatal error %#.8ux", csr32(ctlr, FlowAttention)); + panic("bcm: fatal error %#.8ulx", csr32(ctlr, FlowAttention)); } csr32(ctlr, FlowAttention) = 0; } @@ -390,7 +389,7 @@ bcmerror(Ether *edev) } if(csr32(ctlr, RISCState)) { if(csr32(ctlr, RISCState) & 0x78000403) { - panic("bcm: RISC halted %#.8ux", csr32(ctlr, RISCState)); + panic("bcm: RISC halted %#.8ulx", csr32(ctlr, RISCState)); } csr32(ctlr, RISCState) = 0; }