diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-02-20 18:56:22 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-02-20 18:56:22 +0100 |
commit | 6f1787adcb00e8b5d320561b232810a94932b8eb (patch) | |
tree | 27dc90357dda3b01506d6761db7317462d16d016 /sys/src/9 | |
parent | c6069e28ac0e5a66000f0a887367d7c68410e253 (diff) |
devusb: check for nil hp->dump and hp->seprintep
Diffstat (limited to 'sys/src/9')
-rw-r--r-- | sys/src/9/port/devusb.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/src/9/port/devusb.c b/sys/src/9/port/devusb.c index 73928a04d..e896af1bc 100644 --- a/sys/src/9/port/devusb.c +++ b/sys/src/9/port/devusb.c @@ -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); - ep->hp->seprintep(buf, e, ep); - 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]); } |