On Thu, 11 Apr 2024 at 11:47, Philippe Mathieu-Daudé <[email protected]> wrote:
>
> sprintf() is deprecated on Darwin since macOS 13.0 / XCode 14.1,
> resulting in painful developper experience. Use snprintf() instead.
("developer")
> Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
> ---
> 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);
Something seems to have gone wrong here. Shouldn't this have
failed to compile ?
thanks
-- PMM