mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-10 02:54:58 -06:00
hw/misc/imx: Replace sprintf() by snprintf()
sprintf() is deprecated on Darwin since macOS 13.0 / XCode 14.1, resulting in painful developer experience. Use snprintf() instead. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-Id: <20240411104340.6617-6-philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
a6ab7a98c9
commit
ca4af17c5e
8 changed files with 10 additions and 10 deletions
|
@ -53,7 +53,7 @@ static const char *imx_spi_reg_name(uint32_t reg)
|
|||
case ECSPI_MSGDATA:
|
||||
return "ECSPI_MSGDATA";
|
||||
default:
|
||||
sprintf(unknown, "%u ?", reg);
|
||||
snprintf(unknown, sizeof(unknown), "%u ?", reg);
|
||||
return unknown;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue