devusb: check for nil hp->dump and hp->seprintep
This commit is contained in:
parent
c6069e28ac
commit
6f1787adcb
1 changed files with 5 additions and 3 deletions
|
@ -421,15 +421,17 @@ dumpeps(void)
|
|||
s = seprint(s, e, "ep%d.%d ", ep->dev->nb, ep->nb);
|
||||
seprintep(s, e, ep, 1);
|
||||
print("%s", buf);
|
||||
if(ep->hp->seprintep != nil){
|
||||
ep->hp->seprintep(buf, e, ep);
|
||||
print("%s", buf);
|
||||
}
|
||||
poperror();
|
||||
putep(ep);
|
||||
}
|
||||
}
|
||||
print("usb dump hcis:\n");
|
||||
for(i = 0; i < Nhcis; i++)
|
||||
if(hcis[i] != nil)
|
||||
if(hcis[i] != nil && hcis[i]->dump != nil)
|
||||
hcis[i]->dump(hcis[i]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue