]> git.baikalelectronics.ru Git - kernel.git/commit
ath6kl: use a larger buffer for debug output
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 23 Nov 2011 06:34:50 +0000 (09:34 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 24 Nov 2011 12:28:16 +0000 (14:28 +0200)
commitd083a33ba5d61638e9e8e7ccad0614d2d1c72592
tree2b150b4a825d85a6489976f8aa1044723ede5cca
parent9ba85aa629fd2636a7a392033c7fac39324c6f0d
ath6kl: use a larger buffer for debug output

The return value of snprintf() is the number of bytes which would
have been copied if there was enough space, but we want the number of
bytes actually copied.  The scnprintf() function does this.

Also in theory, a %u can take take 10 digits so we may as well make
the buffer larger as well.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/debug.c