[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5e070719-260e-4219-a972-82db360ac847@suse.de>
Date: Sat, 10 Feb 2024 11:37:43 +0300
From: Denis Kirjanov <dkirjanov@...e.de>
To: Stephen Hemminger <stephen@...workplumber.org>,
Denis Kirjanov <kirjanov@...il.com>
Cc: dsahern@...nel.org, netdev@...r.kernel.org
Subject: Re: [PATCH iproute2 1/2] lib: utils: introduce scnprintf
On 2/9/24 19:33, Stephen Hemminger wrote:
> On Fri, 9 Feb 2024 04:36:18 -0500
> Denis Kirjanov <kirjanov@...il.com> wrote:
>
>> The function is similar to the standard snprintf but
>> returns the number of characters actually written to @buf
>> argument excluding the trailing '\0'
>>
>> Signed-off-by: Denis Kirjanov <dkirjanov@...e.de>
>> ---
>
> I don't understand, why not use snprintf in ifstat?
> None of the cases in patch 2 care about the return value length.
Hi Stephen,
My intention is just use one safe version of the string formatting function.
I'm going to convert other places as well.
Powered by blists - more mailing lists