Re: [PATCH] hw/usb/hcd-xhci: Fix extraneous format-truncation error on 32-bit hosts

2021-01-19 Thread Gerd Hoffmann
On Mon, Jan 18, 2021 at 07:11:15PM +0100, Philippe Mathieu-Daudé wrote: > For some reason the assert() added in commit ccb799313a5 > ("hw/usb: avoid format truncation warning when formatting > port name") does not fix when building with GCC 10. Added to usb queue. thanks, Gerd

[PATCH] hw/usb/hcd-xhci: Fix extraneous format-truncation error on 32-bit hosts

2021-01-18 Thread Philippe Mathieu-Daudé
For some reason the assert() added in commit ccb799313a5 ("hw/usb: avoid format truncation warning when formatting port name") does not fix when building with GCC 10. KISS and expand the buffer by 4 bytes to silent the following error when using GCC 10.2.1 on Fedora 33: hw/usb/hcd-xhci.c: In fu