trace_usb_port_attach prints junk data

Bug #1603785 reported by Thomas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QEMU
Fix Released
Undecided
Unassigned

Bug Description

Running qemu with tracing (-D ~/qemu_trace -d trace:\*) will result in a trace file with unprintable characters.

example: usb_port_attach bus 0, port 1, devspeed <90>l<DB>.<D8>U, portspeed full+high

The problem is in hw/usb/bus.c usb_mask_to_str. If speedmask doesn't match any of the defined speed nothing is written to *dest and uninitialized data is printed to the log.

This happens with a real usb device that is forwarded into the machine.

My qemu version is 2.6.0 but it looks like the problem exists in latest git also.

Revision history for this message
Peter Maydell (pmaydell) wrote :

This bug is still present in current head of git; I've just sent a patch: http://patchwork.ozlabs.org/patch/1068196/

Changed in qemu:
status: New → In Progress
Revision history for this message
Thomas Huth (th-huth) wrote :
Changed in qemu:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.