ether82563: fix format string error
This commit is contained in:
parent
ef4d3bb98e
commit
d32c8fc79a
|
@ -1657,7 +1657,7 @@ eeread(Ctlr *ctlr, int adr)
|
||||||
while ((csr32r(ctlr, Eerd) & EEdone) == 0 && timeout--)
|
while ((csr32r(ctlr, Eerd) & EEdone) == 0 && timeout--)
|
||||||
microdelay(5);
|
microdelay(5);
|
||||||
if (timeout < 0) {
|
if (timeout < 0) {
|
||||||
print("%s: eeread timeout.\n", cname(ctlr));
|
print("%s: eeread timeout\n", cname(ctlr));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
return (csr32r(ctlr, Eerd) >> 16) & 0xffff;
|
return (csr32r(ctlr, Eerd) >> 16) & 0xffff;
|
||||||
|
@ -1717,7 +1717,7 @@ fread(Ctlr *c, Flash *f, int ladr)
|
||||||
while((f->reg[Fsts] & Fdone) == 0 && timeout--)
|
while((f->reg[Fsts] & Fdone) == 0 && timeout--)
|
||||||
microdelay(5);
|
microdelay(5);
|
||||||
if(timeout < 0){
|
if(timeout < 0){
|
||||||
print("%s: fread timeout.\n");
|
print("%s: fread timeout\n", cname(c));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if(f->reg[Fsts] & (Fcerr|Ael))
|
if(f->reg[Fsts] & (Fcerr|Ael))
|
||||||
|
|
Loading…
Reference in a new issue