vmspawn: make "-m" value formatting independent of locale
authorLennart Poettering <lennart@poettering.net>
Fri, 19 Jan 2024 22:12:05 +0000 (23:12 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 22 Jan 2024 15:24:00 +0000 (16:24 +0100)
commit3df61bf00cee67f93fe31dffde9e8df3a83a411d
tree8c69ed9c76ae1da22102939fbafd4cfc733bc3dc
parentdbb2718f927dfb9202043f6f57a6b37cafaa9fa9
vmspawn: make "-m" value formatting independent of locale

We cannot format the memory string via printf() %f format strings, since
that's locale dependent and qemu doesn't like that. hence format this as
an integer. We'll lose sub-MiB accuracy, but systems with less than 1
MiB memory don't really make much sense anyway.
src/vmspawn/vmspawn.c