From: Stephen Hemminger <stephen@networkplumber.org>
To: Denis Kirjanov <kirjanov@gmail.com>
Cc: dsahern@kernel.org, netdev@vger.kernel.org,
Denis Kirjanov <dkirjanov@suse.de>
Subject: Re: [PATCH iproute2 1/2] lib: utils: introduce scnprintf
Date: Fri, 9 Feb 2024 08:33:30 -0800 [thread overview]
Message-ID: <20240209083330.391a773e@hermes.local> (raw)
In-Reply-To: <20240209093619.2553-1-dkirjanov@suse.de>
On Fri, 9 Feb 2024 04:36:18 -0500
Denis Kirjanov <kirjanov@gmail.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@suse.de>
> ---
I don't understand, why not use snprintf in ifstat?
None of the cases in patch 2 care about the return value length.
next prev parent reply other threads:[~2024-02-09 16:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-09 9:36 [PATCH iproute2 1/2] lib: utils: introduce scnprintf Denis Kirjanov
2024-02-09 9:36 ` [PATCH iproute2 2/2] ifstat: convert string formatting calls to scnprintf Denis Kirjanov
2024-02-09 16:33 ` Stephen Hemminger [this message]
2024-02-10 8:37 ` [PATCH iproute2 1/2] lib: utils: introduce scnprintf Denis Kirjanov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240209083330.391a773e@hermes.local \
--to=stephen@networkplumber.org \
--cc=dkirjanov@suse.de \
--cc=dsahern@kernel.org \
--cc=kirjanov@gmail.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).