summaryrefslogtreecommitdiff
path: root/drivers/bcma/main.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-09-25 11:02:51 +0400
committerOhad Ben-Cohen <ohad@wizery.com>2012-09-30 13:41:48 +0400
commitae768d5fac18cd4b3ff51a4860b89fabba8ccc65 (patch)
treefb880925b8a1b8e2fc3a4dbf61e90281a4a36ebe /drivers/bcma/main.c
parentec4d02d9180f407c41f8310a13b34e473c671fbb (diff)
downloadlinux-ae768d5fac18cd4b3ff51a4860b89fabba8ccc65.tar.xz
remoteproc: snprintf() can return more than was printed
snprintf() returns the number of characters which would have been printed if there were enough space. For example, on the first print if we fill up the 28 character string then it would return a number more than 30. Use scnprintf() instead because that returns the actual number of characters printed. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Diffstat (limited to 'drivers/bcma/main.c')
0 files changed, 0 insertions, 0 deletions