From 03c1062163ff6c170c7276ad5d20b97a3115c132 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sun, 14 Mar 2004 21:53:48 +0000 Subject: [PATCH] set_real_time_clock() is supposed to set the hardware clock as well. Fixed dump function. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6978 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/real_time_clock.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/kernel/core/real_time_clock.c b/src/kernel/core/real_time_clock.c index 6131996786..49cfc485e0 100644 --- a/src/kernel/core/real_time_clock.c +++ b/src/kernel/core/real_time_clock.c @@ -52,9 +52,9 @@ rtc_print(void) uint32 currentTime; currentTime = (sBootTime + system_time()) / 1000000; - dprintf("system_time: %u\n", (unsigned)system_time()); - dprintf("boot_time: %u\n", (unsigned)sBootTime); - dprintf("current_time: %u\n", (unsigned)currentTime); + dprintf("system_time: %Ld\n", system_time()); + dprintf("boot_time: %Ld\n", sBootTime); + dprintf("current_time: %u\n", currentTime); } @@ -67,7 +67,6 @@ rtc_debug(int argc, char **argv) } else { // If there was an argument, reset the system and hw time. set_real_time_clock(strtoul(argv[1], NULL, 10)); - rtc_system_to_hw(); } return 0; @@ -94,6 +93,7 @@ void set_real_time_clock(uint32 currentTime) { sBootTime = currentTime * 1000000LL - system_time(); + rtc_system_to_hw(); }