From: Rasmus Villemoes Date: Fri, 20 Feb 2015 13:47:30 +0000 (+0100) Subject: rtc: mc13xxx: fix obfuscated and wrong format string X-Git-Tag: omap-for-v4.3/legacy-v2-signed~136^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99c14e4df6144bca12dcac657266a7b8216aaa16;p=pandora-kernel.git rtc: mc13xxx: fix obfuscated and wrong format string According to C99, %2.s means 'print two spaces' (a precision of . without following digits or * means 0). The kernel's printf implementation, however, treats that case as if no precision was given, but relying on that quirk is rather silly. Also, since no - (aka left-justify) flag is given, the field with of 2 would then cause the alarm->enabled case to come out as "o n". Deobfuscate it. Signed-off-by: Rasmus Villemoes Signed-off-by: Alexandre Belloni --- Reading git-diff-tree failed