diff options
author | Wagner Ferenc <[email protected]> | 2007-12-06 23:40:28 -0800 |
---|---|---|
committer | Jeff Garzik <[email protected]> | 2007-12-07 15:00:18 -0500 |
commit | 7bd4650895137760f6c686d06ca2bc174e3c861c (patch) | |
tree | aecdf098f1bb5ef2e16afe9e6b63bfb87617bbfc /net/unix/sysctl_net_unix.c | |
parent | 2c5ea0f2d8c7d4883dd0d8ec3c7e3f3640b4f814 (diff) |
bonding: Remove trailing NULs from sysfs interface.
From: Wagner Ferenc <[email protected]>
Also remove trailing spaces from multivalued files.
This fixes output like for example:
$ od -c /sys/class/net/bond0/bonding/slaves
0000000 e t h - l e f t e t h - r i g
0000020 h t \n \0
0000025
It mostly entails deleting '+1'-s after sprintf() calls: the return value
of sprintf is the number of characters printed, without the closing NUL,
ie. exactly what the sysfs interface requires. The three multivalue
cases are different, because they also have to swallow back a trailing
space.
Signed-off-by: Ferenc Wagner <[email protected]>
Acked-by: Jay Vosburgh <[email protected]>
Signed-off-by: Jeff Garzik <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions