Re: [PATCH] hw/misc: Avoid sprintf() in the imx devices

2024-04-11 Thread Peter Maydell
On Thu, 11 Apr 2024 at 11:45, Peter Maydell wrote: > > Various imx devices in hw/misc have a pattern in the > debug logging where a function which prints register names > has a fallback case for an unknown offset that uses sprintf(). > Use snprintf() instead to avoid warnings on macos. (The > buff

[PATCH] hw/misc: Avoid sprintf() in the imx devices

2024-04-11 Thread Peter Maydell
Various imx devices in hw/misc have a pattern in the debug logging where a function which prints register names has a fallback case for an unknown offset that uses sprintf(). Use snprintf() instead to avoid warnings on macos. (The buffer could never overflow because it is 20 bytes and we will write