On 12/4/24 09:33, Richard Henderson wrote:
From: Philippe Mathieu-Daudé <phi...@linaro.org>
sprintf() is deprecated on Darwin since macOS 13.0 / XCode 14.1,
resulting in painful developper experience. Use snprintf() instead.
Signed-off-by: Philippe Mathieu-Daudé <phi...@linaro.org>
Message-Id: <20240411104340.6617-7-phi...@linaro.org>
Signed-off-by: Richard Henderson <richard.hender...@linaro.org>
---
hw/net/rocker/rocker.c | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
switch (offset) {
case ROCKER_DMA_DESC_ADDR_OFFSET:
- sprintf(buf, "Ring[%s] ADDR", ring_name);
+ snprintf(buf, sizeofbuf), "Ring[%s] ADDR", ring_name);
Ideally we should convert the DEBUG_FOO guards to trace events,
to avoid to maintain dead code.