aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-mt6397.c
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2015-02-20 14:47:30 +0100
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2015-06-25 01:13:35 +0200
commit99c14e4df6144bca12dcac657266a7b8216aaa16 (patch)
treecf213921916517a012e4bfe0375c7a5dbafc7fc2 /drivers/rtc/rtc-mt6397.c
parentMAINTAINERS: add Mediatek RTC driver (diff)
downloadlinux-dev-99c14e4df6144bca12dcac657266a7b8216aaa16.tar.xz
linux-dev-99c14e4df6144bca12dcac657266a7b8216aaa16.zip
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 <linux@rasmusvillemoes.dk> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc/rtc-mt6397.c')
0 files changed, 0 insertions, 0 deletions