tmp_suning_uos_patched/drivers
Wagner Ferenc 7bd4650895 bonding: Remove trailing NULs from sysfs interface.
From: Wagner Ferenc <wferi@niif.hu>

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 <wferi@niif.hu>
Acked-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
2007-12-07 15:00:18 -05:00
..
acorn/char
acpi ACPI: move timer broadcast before busmaster disable 2007-12-07 19:16:17 +01:00
amba
ata pata_amd/pata_via: de-couple programming of PIO/MWDMA and UDMA timings 2007-12-04 14:11:36 -05:00
atm
auxdisplay
base
block
bluetooth
cdrom
char Pull apm-freeze-fix into release branch 2007-12-06 16:51:29 -05:00
clocksource
connector
cpufreq
cpuidle
crypto uml: add !UML dependencies 2007-12-03 08:13:17 -08:00
dca
dio
dma
edac
eisa
firewire
firmware
hid
hwmon HWMON: coretemp, suspend fix 2007-12-04 01:35:32 -05:00
i2c
ide
ieee1394
infiniband
input spi: use simplified spi_sync() calling convention 2007-12-05 09:21:19 -08:00
isdn I4L: fix isdn_ioctl memory overrun vulnerability 2007-12-03 08:13:17 -08:00
kvm
leds leds: Fix led trigger locking bugs 2007-12-07 09:06:53 +00:00
lguest
macintosh
mca
md
media
message
mfd
misc
mmc spi: use simplified spi_sync() calling convention 2007-12-05 09:21:19 -08:00
mtd
net bonding: Remove trailing NULs from sysfs interface. 2007-12-07 15:00:18 -05:00
nubus
of
oprofile
parisc [PARISC] lba_pci: pci_claim_resources disabled expansion roms 2007-12-06 09:38:26 -08:00
parport
pci
pcmcia
pnp
power
ps3
rapidio
rtc spi: use simplified spi_sync() calling convention 2007-12-05 09:21:19 -08:00
s390 Merge branch 'for-linus' of git://git390.osdl.marist.edu/pub/scm/linux-2.6 2007-12-04 09:37:39 -08:00
sbus
scsi Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6 2007-12-03 08:20:11 -08:00
serial
sh
sn
spi Blackfin SPI driver: reconfigure speed_hz and bits_per_word in each spi transfer 2007-12-05 09:21:20 -08:00
ssb
tc
telephony
uio
usb
video
virtio
w1
watchdog
xen
zorro
Kconfig
Makefile