Skip to content

Commit 9bb1e18

Browse files
andy-shevalexandrebelloni
authored andcommitted
rtc: isl12022: Join string literals back
For easy grepping on debug purposes join string literals back in the messages. While at it, drop __func__ parameter from unique enough dev_dbg() message as Dynamic Debug can retrieve this at run time. Signed-off-by: Andy Shevchenko <[email protected]> Acked-by: Rasmus Villemoes <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexandre Belloni <[email protected]>
1 parent c8ae273 commit 9bb1e18

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

drivers/rtc/rtc-isl12022.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,16 +143,12 @@ static int isl12022_rtc_read_time(struct device *dev, struct rtc_time *tm)
143143

144144
if (buf[ISL12022_REG_SR] & (ISL12022_SR_LBAT85 | ISL12022_SR_LBAT75)) {
145145
dev_warn(dev,
146-
"voltage dropped below %u%%, "
147-
"date and time is not reliable.\n",
146+
"voltage dropped below %u%%, date and time is not reliable.\n",
148147
buf[ISL12022_REG_SR] & ISL12022_SR_LBAT85 ? 85 : 75);
149148
}
150149

151150
dev_dbg(dev,
152-
"%s: raw data is sec=%02x, min=%02x, hr=%02x, "
153-
"mday=%02x, mon=%02x, year=%02x, wday=%02x, "
154-
"sr=%02x, int=%02x",
155-
__func__,
151+
"raw data is sec=%02x, min=%02x, hr=%02x, mday=%02x, mon=%02x, year=%02x, wday=%02x, sr=%02x, int=%02x",
156152
buf[ISL12022_REG_SC],
157153
buf[ISL12022_REG_MN],
158154
buf[ISL12022_REG_HR],

0 commit comments

Comments
 (0)