Re: [PATCH 2/2] qemu: Fix build on 32-bit platforms

2025-04-05 Thread Pavel Hrdina via Devel
On Thu, Mar 20, 2025 at 04:17:00PM -0600, Jim Fehlig via Devel wrote: > Commits c2518f7bc7 and 28a0621528 introduced build failures on 32-bit > platforms by using incorrect format specifiers with g_strdup_printf. > > In one case, an 'unsigned long' format specifier is used with a > 'long long int'

[PATCH 2/2] qemu: Fix build on 32-bit platforms

2025-03-20 Thread Jim Fehlig via Devel
Commits c2518f7bc7 and 28a0621528 introduced build failures on 32-bit platforms by using incorrect format specifiers with g_strdup_printf. In one case, an 'unsigned long' format specifier is used with a 'long long int' variable. Fix by changing the format specifier to 'uintmax_t', and casting the