git: 9front

Download patch

ref: 08a8f6969a2ed470b767d0ebf97e862e081ca44b
parent: d5b0b0311b8cb82195297d0a7018dd924bc3d072
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Fri Dec 23 09:39:20 EST 2022

usbd: use dprint() report to standard-error instad of standard-out

--- a/sys/src/cmd/nusb/lib/dev.c
+++ b/sys/src/cmd/nusb/lib/dev.c
@@ -234,8 +234,8 @@
 	 * (a get configuration descriptor also fails for them!)
 	 */
 	if(nr < Ddevlen){
-		print("%s: %s: warning: device with short descriptor\n",
-			argv0, d->dir);
+		dprint(2, "%s: %s: warning: device with short descriptor (got %d bytes)\n",
+			argv0, d->dir, nr);
 		if(nr < Ddevlen-1){
 			werrstr("short device descriptor (%d bytes)", nr);
 			return -1;
--