Skip to content
Commit ae768d5f authored by Dan Carpenter's avatar Dan Carpenter Committed by Ohad Ben-Cohen
Browse files

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarOhad Ben-Cohen <ohad@wizery.com>
parent ec4d02d9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment