shithub: riscv

Download patch

ref: d32c8fc79a9b55a4fd6b1fdd3b0d7ea6efa27a24
parent: ef4d3bb98e1fd7839c2961ea9f683b6944721770
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Sun Sep 2 17:57:10 EDT 2012

ether82563: fix format string error

--- a/sys/src/9/pc/ether82563.c
+++ b/sys/src/9/pc/ether82563.c
@@ -1657,7 +1657,7 @@
 	while ((csr32r(ctlr, Eerd) & EEdone) == 0 && timeout--)
 		microdelay(5);
 	if (timeout < 0) {
-		print("%s: eeread timeout.\n", cname(ctlr));
+		print("%s: eeread timeout\n", cname(ctlr));
 		return -1;
 	}
 	return (csr32r(ctlr, Eerd) >> 16) & 0xffff;
@@ -1717,7 +1717,7 @@
 	while((f->reg[Fsts] & Fdone) == 0 && timeout--)
 		microdelay(5);
 	if(timeout < 0){
-		print("%s: fread timeout.\n");
+		print("%s: fread timeout\n", cname(c));
 		return -1;
 	}
 	if(f->reg[Fsts] & (Fcerr|Ael))
--