OSDN Git Service

usb: hcd-dwc2: change assert()s to qemu_log_mask(LOG_GUEST_ERROR...)
authorPaul Zimmerman <pauldzim@gmail.com>
Sun, 20 Sep 2020 02:14:49 +0000 (19:14 -0700)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 19 Oct 2020 07:12:20 +0000 (09:12 +0200)
commit69958d8a3d9535f43a457044b2b277c3c6a5ef3d
tree2079887c8cc4da4e38307587d37b3938109f8673
parente12ce85b2c79d83a340953291912875c30b3af06
usb: hcd-dwc2: change assert()s to qemu_log_mask(LOG_GUEST_ERROR...)

Change several assert()s to qemu_log_mask(LOG_GUEST_ERROR...),
to prevent the guest from causing Qemu to assert. Also fix up
several existing qemu_log_mask()s to include the function name in
the message.

Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Paul Zimmerman <pauldzim@gmail.com>
Message-id: 20200920021449.830-1-pauldzim@gmail.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/usb/hcd-dwc2.c