shithub: riscv

Download patch

ref: 89cd4a0e67376d69d42a17bc3135ac9206c4e332
parent: 40622a0fb39659d0a36c35b0335c3fdf189f8579
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;