From: Johannes Berg Date: Tue, 31 Mar 2015 07:12:54 +0000 (+0200) Subject: iwlwifi: mvm: do string formatting in debug triggers X-Git-Tag: omap-for-v4.2/o2_dc~131^2~39^2~6^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d4f929e3d0c09838677a116ffd168d9d519ada7;p=pandora-kernel.git iwlwifi: mvm: do string formatting in debug triggers The current code has a lot of duplicates of printing into a buffer (while having to make sure it's NUL-filled and -terminated) and then passing that to the debug trigger collection. Since that's error-prone, instead make the debug trigger collection function take a format string and format arguments (with compiler validity checking) and handle the buffer internally. This makes one behavioural change -- instead of sending the whole buffer to userspace (clearing is needed to not leak stack data) it just passes the actual string (including NUL-terminator.) Signed-off-by: Johannes Berg Signed-off-by: Emmanuel Grumbach --- Reading git-diff-tree failed