From: Dan Carpenter Date: Tue, 25 Sep 2012 07:02:51 +0000 (+0300) Subject: remoteproc: snprintf() can return more than was printed X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~18^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae768d5fac18cd4b3ff51a4860b89fabba8ccc65;p=pandora-kernel.git 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 Signed-off-by: Ohad Ben-Cohen --- Reading git-diff-tree failed