shithub: riscv

Download patch

ref: 424f8a9520b685d9fddc9594de8f076369506a96
parent: 02217fa6c273bef9500d875385dab4e7de1dd51e
author: cinap_lenrek <[email protected]>
date: Thu Mar 1 13:56:54 EST 2012

nusb: debug flags

--- a/sys/src/cmd/nusb/audio/audio.c
+++ b/sys/src/cmd/nusb/audio/audio.c
@@ -165,6 +165,12 @@
 	int i;
 
 	ARGBEGIN {
+	case 'D':
+		chatty9p++;
+		break;
+	case 'd':
+		usbdebug++;
+		break;
 	} ARGEND;
 
 	if(argc == 0)
--- a/sys/src/cmd/nusb/disk/disk.c
+++ b/sys/src/cmd/nusb/disk/disk.c
@@ -999,6 +999,9 @@
 	char buf[20];
 
 	ARGBEGIN{
+	case 'D':
+		chatty9p++;
+		break;
 	case 'd':
 		scsidebug(diskdebug);
 		diskdebug++;
--- a/sys/src/cmd/nusb/usbd/usbd.c
+++ b/sys/src/cmd/nusb/usbd/usbd.c
@@ -348,6 +348,12 @@
 	Dir *d;
 
 	ARGBEGIN {
+	case 'D':
+		chatty9p++;
+		break;
+	case 'd':
+		usbdebug++;
+		break;
 	} ARGEND;
 
 	initevent();