Kernel: Convert klog() => AK::Format in a handful of places

This commit is contained in:
Andreas Kling 2021-03-12 14:06:37 +01:00
commit 73e06a1983
Notes: sideshowbarker 2024-07-18 21:28:26 +09:00
9 changed files with 16 additions and 17 deletions

View file

@ -100,7 +100,7 @@ time_t now()
unsigned year, month, day, hour, minute, second;
read_registers(year, month, day, hour, minute, second);
klog() << "RTC: Year: " << year << ", month: " << month << ", day: " << day << ", hour: " << hour << ", minute: " << minute << ", second: " << second;
dmesgln("RTC: Year: {}, month: {}, day: {}, hour: {}, minute: {}, second: {}", year, month, day, hour, minute, second);
time_t days_since_epoch = years_to_days_since_epoch(year) + day_of_year(year, month, day);
return ((days_since_epoch * 24 + hour) * 60 + minute) * 60 + second;