qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 00/12] misc: Remove sprintf() due to macOS deprecation


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH 00/12] misc: Remove sprintf() due to macOS deprecation
Date: Thu, 11 Apr 2024 11:38:41 +0200
User-agent: Mozilla Thunderbird

On 11/4/24 00:27, BALATON Zoltan wrote:
On Wed, 10 Apr 2024, Richard Henderson wrote:
On 4/10/24 06:06, Philippe Mathieu-Daudé wrote:
Hi,

sprintf() is deprecated on Darwin since macOS 13.0 / XCode 14.1,
resulting in painful developper experience.

Is snprintf also deprecated?
It might be easier to convert some of these fixed buffer cases that way, if allowed.

I had the same thought as some of these might also have performance implications (although most of them are in rarely called places).

I thought GLib/GString was recommended for formatting (IIRC some
previous discussion with Alex / Daniel), so I switched to this
API for style, rather than thinking of performance. Anyway, I'll
respin using sprintf() when the buffer size maths are already done.


Regards,
BALATON Zoltan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]