@samitouri / QOSamiQemu / commits / ebe66684a5

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>

Thomas Huth committed Jul 13, 2026 at 18:14 UTC ebe66684a58587bcaf91055fa92f25f2a5d175e9
1 file changed +2 -1
hw/usb/hcd-xhci.c
+2 -1
@@ -1017,7 +1017,8 @@ static XHCIStreamContext *xhci_find_stream(XHCIEPContext *epctx,
1017 }
1018 sctx = epctx->pstreams + streamid;
1019 } else {
1020 - fprintf(stderr, "xhci: FIXME: secondary streams not implemented yet");
1020 + qemu_log_mask(LOG_UNIMP,
1021 + "xhci: secondary streams not implemented yet\n");
1022 *cc_error = CC_INVALID_STREAM_TYPE_ERROR;
1023 return NULL;
1024 }