ath9k: replace snprintf() with scnprintf()
authorZefir Kurtisi <zefir.kurtisi@neratec.com>
Thu, 5 Sep 2013 12:11:57 +0000 (14:11 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 26 Sep 2013 19:13:35 +0000 (15:13 -0400)
commit5e88ba6228e66741811992a6c1d7cf37195ed4be
treebbef06dfe1c87b09a3b2b5c4fde947a7030368e1
parentbf7c756c5d653a63c9bbef4686ae57efcfdaee3d
ath9k: replace snprintf() with scnprintf()

Whenever the return value of snprintf() is used to calculate
remaining buffer-space, we wanted to use sncprintf() instead.

Indentation is adapted where possible. Some lines exceed the
line width limit, either they did it already before, or
since they can not be broken reasonably well.

Signed-off-by: Zefir Kurtisi <zefir.kurtisi@neratec.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
13 files changed:
drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
drivers/net/wireless/ath/ath9k/ath9k.h
drivers/net/wireless/ath/ath9k/debug.c
drivers/net/wireless/ath/ath9k/debug.h
drivers/net/wireless/ath/ath9k/dfs_debug.c
drivers/net/wireless/ath/ath9k/eeprom_4k.c
drivers/net/wireless/ath/ath9k/eeprom_9287.c
drivers/net/wireless/ath/ath9k/eeprom_def.c
drivers/net/wireless/ath/ath9k/gpio.c
drivers/net/wireless/ath/ath9k/htc_drv_debug.c
drivers/net/wireless/ath/ath9k/hw.c
drivers/net/wireless/ath/ath9k/hw.h
drivers/net/wireless/ath/ath9k/rc.c