Re: [PATCH v4] i386: Fix GCC warning with snprintf when HAX is enabled

2020-03-03 Thread Paolo Bonzini
On 02/03/20 21:13, Julio Faracco wrote: > When HAX is enabled (--enable-hax), GCC 9.2.1 reports issues with > snprintf(). Replacing old snprintf() by g_strdup_printf() fixes the > problem with boundary checks of vm_id and vcpu_id and finally the > warnings produced by GCC. > > For more details, on

Re: [PATCH v4] i386: Fix GCC warning with snprintf when HAX is enabled

2020-03-02 Thread Julio Faracco
Em seg., 2 de mar. de 2020 às 17:13, Julio Faracco escreveu: > > When HAX is enabled (--enable-hax), GCC 9.2.1 reports issues with > snprintf(). Replacing old snprintf() by g_strdup_printf() fixes the > problem with boundary checks of vm_id and vcpu_id and finally the > warnings produced by GCC. >

[PATCH v4] i386: Fix GCC warning with snprintf when HAX is enabled

2020-03-02 Thread Julio Faracco
When HAX is enabled (--enable-hax), GCC 9.2.1 reports issues with snprintf(). Replacing old snprintf() by g_strdup_printf() fixes the problem with boundary checks of vm_id and vcpu_id and finally the warnings produced by GCC. For more details, one example of warning: CC i386-softmmu/target/