From 2144eb756895d97f8a09961b270f08b166a71d65 Mon Sep 17 00:00:00 2001 From: "Bjoern A. Zeeb" Date: Fri, 6 Nov 2020 22:40:00 +0000 Subject: [PATCH] usb_hub: giving up port reset - device vanished Improve the output of the recently often experienced debug message in order to gather further data. PR: 237666 Reviewed by: hselasky MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D27108 --- sys/dev/usb/usb_hub.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/dev/usb/usb_hub.c b/sys/dev/usb/usb_hub.c index f2180e8fc174..aae661549718 100644 --- a/sys/dev/usb/usb_hub.c +++ b/sys/dev/usb/usb_hub.c @@ -720,8 +720,10 @@ uhub_reattach_port(struct uhub_softc *sc, uint8_t portno) if ((sc->sc_st.port_change & UPS_C_CONNECT_STATUS) || (!(sc->sc_st.port_status & UPS_CURRENT_CONNECT_STATUS))) { if (timeout) { - DPRINTFN(0, "giving up port reset " - "- device vanished\n"); + DPRINTFN(0, "giving up port %d reset - " + "device vanished: change %#x status %#x\n", + portno, sc->sc_st.port_change, + sc->sc_st.port_status); goto error; } timeout = 1;