summaryrefslogtreecommitdiff
path: root/sys/src/9/pc/wavelan.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@centraldogma>2011-12-12 16:55:26 +0100
committercinap_lenrek <cinap_lenrek@centraldogma>2011-12-12 16:55:26 +0100
commitbf3476d661e05208b78f70cdaa5656ff77264d23 (patch)
treef5c52910b93aa74586740a54f6b2911e95ae96cc /sys/src/9/pc/wavelan.c
parent589f99915eb95d9207c08259c8880675a0a502cf (diff)
kernel: fix inproper use of malloc/smalloc
Diffstat (limited to 'sys/src/9/pc/wavelan.c')
-rw-r--r--sys/src/9/pc/wavelan.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/9/pc/wavelan.c b/sys/src/9/pc/wavelan.c
index bf42c3c52..969c5f985 100644
--- a/sys/src/9/pc/wavelan.c
+++ b/sys/src/9/pc/wavelan.c
@@ -169,7 +169,7 @@ w_seek(Ctlr* ctlr, ushort id, ushort offset, int chan)
static ushort off[] = { WR_Off0, WR_Off1 };
if(chan != 0 && chan != 1)
- panic("wavelan: bad chan\n");
+ panic("wavelan: bad chan");
csr_outs(ctlr, sel[chan], id);
csr_outs(ctlr, off[chan], offset);
for (i=0; i<WTmOut; i++){
@@ -846,7 +846,7 @@ w_ifstat(Ether* ether, void* a, long n, ulong offset)
if(n == 0 || offset != 0)
return 0;
- p = malloc(READSTR);
+ p = smalloc(READSTR);
l = 0;
PRINTSTAT("Signal: %d\n", ctlr->signal-149);