nusb/usbd: fix dump %U formatter

This commit is contained in:
mischief 2019-04-13 22:37:52 -07:00
parent 71397d51d0
commit 07674f6e8d
2 changed files with 2 additions and 1 deletions

View file

@ -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);
}

View file

@ -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)){