ref: 07674f6e8d241ffbec969fab7fc1d71cef8e0e69
parent: 71397d51d063816e8d2047b5039765e69b21a6ac
author: mischief <mischief@offblast.org>
date: Sat Apr 13 18:37:52 EDT 2019
nusb/usbd: fix dump %U formatter
--- a/sys/src/cmd/nusb/usbd/hub.c
+++ b/sys/src/cmd/nusb/usbd/hub.c
@@ -670,7 +670,7 @@
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);
}
--- a/sys/src/cmd/nusb/usbd/usbd.c
+++ b/sys/src/cmd/nusb/usbd/usbd.c
@@ -460,6 +460,7 @@
busyfd = create("/env/usbbusy", ORCLOSE, 0600);
quotefmtinstall();
+ fmtinstall('U', Ufmt);
initevent();
rfork(RFNOTEG);
switch(rfork(RFPROC|RFMEM|RFNOWAIT)){