From: Eric Dumazet <eric.dumazet@gmail.com>
To: Jesper Dangaard Brouer <hawk@comx.dk>
Cc: "David S. Miller" <davem@davemloft.net>, netdev@vger.kernel.org
Subject: Re: [net-next PATCH] net: Make it easier to parse /proc/net/dev contents.
Date: Wed, 06 Jan 2010 06:57:17 +0100 [thread overview]
Message-ID: <4B44263D.20604@gmail.com> (raw)
In-Reply-To: <20100105155052.13309.1197.stgit@firesoul.comx.local>
Le 05/01/2010 16:50, Jesper Dangaard Brouer a écrit :
> The contents of /proc/net/dev is annoying to parse, because
> it changes whether there is a space after the "ethX:" or not.
> It depends upon the size of the "Receive bytes" counter,
> if the number is below 7 digits, then there is whitespaces
> else if the number is 8 digits or above there is no space
> between the ":" and the number.
>
> This patch changes the output to assure there is always a space
> between the ":" and the number. Given that all existing userspace
> application already need to handle the whitespaces, I see
> no breakage of existing tools.
>
> Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
next prev parent reply other threads:[~2010-01-06 5:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-05 15:50 [net-next PATCH] net: Make it easier to parse /proc/net/dev contents Jesper Dangaard Brouer
2010-01-06 5:57 ` Eric Dumazet [this message]
2010-01-07 8:59 ` David Miller
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=4B44263D.20604@gmail.com \
--to=eric.dumazet@gmail.com \
--cc=davem@davemloft.net \
--cc=hawk@comx.dk \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.