|
@@ -79,7 +79,7 @@ void vrtc_get_time(struct timespec *now)
|
|
|
/* vRTC YEAR reg contains the offset to 1972 */
|
|
|
year += 1972;
|
|
|
|
|
|
- printk(KERN_INFO "vRTC: sec: %d min: %d hour: %d day: %d "
|
|
|
+ pr_info("vRTC: sec: %d min: %d hour: %d day: %d "
|
|
|
"mon: %d year: %d\n", sec, min, hour, mday, mon, year);
|
|
|
|
|
|
now->tv_sec = mktime(year, mon, mday, hour, min, sec);
|
|
@@ -109,8 +109,7 @@ int vrtc_set_mmss(const struct timespec *now)
|
|
|
vrtc_cmos_write(tm.tm_sec, RTC_SECONDS);
|
|
|
spin_unlock_irqrestore(&rtc_lock, flags);
|
|
|
} else {
|
|
|
- printk(KERN_ERR
|
|
|
- "%s: Invalid vRTC value: write of %lx to vRTC failed\n",
|
|
|
+ pr_err("%s: Invalid vRTC value: write of %lx to vRTC failed\n",
|
|
|
__FUNCTION__, now->tv_sec);
|
|
|
retval = -EINVAL;
|
|
|
}
|