diff options
author | mischief <mischief@offblast.org> | 2019-04-13 22:37:52 -0700 |
---|---|---|
committer | mischief <mischief@offblast.org> | 2019-04-13 22:37:52 -0700 |
commit | 07674f6e8d241ffbec969fab7fc1d71cef8e0e69 (patch) | |
tree | 6b62cc3c0007a8fbb6c1b962df8e795fbfee9a92 /sys/src/cmd/nusb | |
parent | 71397d51d063816e8d2047b5039765e69b21a6ac (diff) |
nusb/usbd: fix dump %U formatter
Diffstat (limited to 'sys/src/cmd/nusb')
-rw-r--r-- | sys/src/cmd/nusb/usbd/hub.c | 2 | ||||
-rw-r--r-- | sys/src/cmd/nusb/usbd/usbd.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sys/src/cmd/nusb/usbd/hub.c b/sys/src/cmd/nusb/usbd/hub.c index 3f7147476..8fb19d214 100644 --- a/sys/src/cmd/nusb/usbd/hub.c +++ b/sys/src/cmd/nusb/usbd/hub.c @@ -670,7 +670,7 @@ dump(void) mustdump = 0; for(h = hubs; h != nil; h = h->next) for(i = 1; i <= h->nport; i++) - fprint(2, "%s: hub %#p %s port %d: %U", + fprint(2, "%s: hub %#p %s port %d: %U\n", argv0, h, h->dev->dir, i, h->port[i].dev); } diff --git a/sys/src/cmd/nusb/usbd/usbd.c b/sys/src/cmd/nusb/usbd/usbd.c index 0039cb495..804b69277 100644 --- a/sys/src/cmd/nusb/usbd/usbd.c +++ b/sys/src/cmd/nusb/usbd/usbd.c @@ -460,6 +460,7 @@ main(int argc, char **argv) busyfd = create("/env/usbbusy", ORCLOSE, 0600); quotefmtinstall(); + fmtinstall('U', Ufmt); initevent(); rfork(RFNOTEG); switch(rfork(RFPROC|RFMEM|RFNOWAIT)){ |