Commit ebe66684a5 for qemu.org
commit ebe66684a58587bcaf91055fa92f25f2a5d175e9
Author: Thomas Huth <thuth@redhat.com>
Date: Mon Jul 13 18:14:06 2026 +0200
hw/usb/hcd-xhci: Use qemu_log_mask() instead of fprintf() statement
We've got a proper way for logging unimplemented hardware features,
so use qemu_log_mask() instead of the fprintf() here now.
Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Message-ID: <20260713161406.361197-4-thuth@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c
index cc61e28d33..c7e050e38f 100644
--- a/hw/usb/hcd-xhci.c
+++ b/hw/usb/hcd-xhci.c
@@ -1017,7 +1017,8 @@ static XHCIStreamContext *xhci_find_stream(XHCIEPContext *epctx,
}
sctx = epctx->pstreams + streamid;
} else {
- fprintf(stderr, "xhci: FIXME: secondary streams not implemented yet");
+ qemu_log_mask(LOG_UNIMP,
+ "xhci: secondary streams not implemented yet\n");
*cc_error = CC_INVALID_STREAM_TYPE_ERROR;
return NULL;
}