From: Jesper Dangaard Brouer Date: Tue, 5 Jan 2010 05:50:52 +0000 (+0000) Subject: net: Make it easier to parse /proc/net/dev contents. X-Git-Tag: v2.6.34-rc1~233^2~658 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d13bafeba24f732e89b818b8c66b07893457570;p=pandora-kernel.git net: Make it easier to parse /proc/net/dev contents. 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 Acked-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed