@@ -141,11 +141,7 @@ static int isl12022_rtc_read_time(struct device *dev, struct rtc_time *tm)
141
141
tm -> tm_mon = bcd2bin (buf [ISL12022_REG_MO ] & 0x1F ) - 1 ;
142
142
tm -> tm_year = bcd2bin (buf [ISL12022_REG_YR ]) + 100 ;
143
143
144
- dev_dbg (dev , "%s: secs=%d, mins=%d, hours=%d, "
145
- "mday=%d, mon=%d, year=%d, wday=%d\n" ,
146
- __func__ ,
147
- tm -> tm_sec , tm -> tm_min , tm -> tm_hour ,
148
- tm -> tm_mday , tm -> tm_mon , tm -> tm_year , tm -> tm_wday );
144
+ dev_dbg (dev , "%s: %ptR\n" , __func__ , tm );
149
145
150
146
return 0 ;
151
147
}
@@ -158,11 +154,7 @@ static int isl12022_rtc_set_time(struct device *dev, struct rtc_time *tm)
158
154
int ret ;
159
155
uint8_t buf [ISL12022_REG_DW + 1 ];
160
156
161
- dev_dbg (dev , "%s: secs=%d, mins=%d, hours=%d, "
162
- "mday=%d, mon=%d, year=%d, wday=%d\n" ,
163
- __func__ ,
164
- tm -> tm_sec , tm -> tm_min , tm -> tm_hour ,
165
- tm -> tm_mday , tm -> tm_mon , tm -> tm_year , tm -> tm_wday );
157
+ dev_dbg (dev , "%s: %ptR\n" , __func__ , tm );
166
158
167
159
if (!isl12022 -> write_enabled ) {
168
160
0 commit comments