shithub: riscv

Download patch

ref: 403fef45c1a65aa74c449764e2857597fc03290a
parent: 13963cd5e032bf85f0d2f9a562b263374a7cc850
author: cinap_lenrek <[email protected]>
date: Sat Jun 6 12:18:06 EDT 2020

pc/wavelan: print Ether.port as 64-bit value

--- a/sys/src/9/pc/wavelan.c
+++ b/sys/src/9/pc/wavelan.c
@@ -1245,8 +1245,8 @@
 
 	intrenable(ether->irq, w_interrupt, ether, ether->tbdf, ether->name);
 
-	DEBUG("#l%d: irq %d port %lx type %s",
-		ether->ctlrno, ether->irq, ether->port,	ether->type);
+	DEBUG("#l%d: irq %d port %llux type %s",
+		ether->ctlrno, ether->irq, (uvlong)ether->port,	ether->type);
 	DEBUG(" %2.2ux%2.2ux%2.2ux%2.2ux%2.2ux%2.2ux\n",
 		ether->ea[0], ether->ea[1], ether->ea[2],
 		ether->ea[3], ether->ea[4], ether->ea[5]);