changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: nusb/usbd: fix dump %U formatter

changeset 7162: 28e66ae194cd
parent 7161: 9d27035b154b
child 7163: 038f40f477fc
author: mischief <mischief@offblast.org>
date: Sat, 13 Apr 2019 22:37:52 -0700
files: sys/src/cmd/nusb/usbd/hub.c sys/src/cmd/nusb/usbd/usbd.c
description: nusb/usbd: fix dump %U formatter
     1.1--- a/sys/src/cmd/nusb/usbd/hub.c
     1.2+++ b/sys/src/cmd/nusb/usbd/hub.c
     1.3@@ -670,7 +670,7 @@ dump(void)
     1.4 	mustdump = 0;
     1.5 	for(h = hubs; h != nil; h = h->next)
     1.6 		for(i = 1; i <= h->nport; i++)
     1.7-			fprint(2, "%s: hub %#p %s port %d: %U",
     1.8+			fprint(2, "%s: hub %#p %s port %d: %U\n",
     1.9 				argv0, h, h->dev->dir, i, h->port[i].dev);
    1.10 
    1.11 }
     2.1--- a/sys/src/cmd/nusb/usbd/usbd.c
     2.2+++ b/sys/src/cmd/nusb/usbd/usbd.c
     2.3@@ -460,6 +460,7 @@ main(int argc, char **argv)
     2.4 
     2.5 	busyfd = create("/env/usbbusy", ORCLOSE, 0600);
     2.6 	quotefmtinstall();
     2.7+	fmtinstall('U', Ufmt);
     2.8 	initevent();
     2.9 	rfork(RFNOTEG);
    2.10 	switch(rfork(RFPROC|RFMEM|RFNOWAIT)){