aboutsummaryrefslogtreecommitdiff
path: root/src/RTC.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/RTC.cpp')
-rw-r--r--src/RTC.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/RTC.cpp b/src/RTC.cpp
index 1c02cbb..a5340f4 100644
--- a/src/RTC.cpp
+++ b/src/RTC.cpp
@@ -19,11 +19,13 @@
// Required by MinGW to enable localtime_r in time.h
#define _POSIX_THREAD_SAFE_FUNCTIONS
-#include <stdio.h>
#include <string.h>
#include <time.h>
#include "RTC.h"
+#include "Platform.h"
+using Platform::Log;
+using Platform::LogLevel;
namespace RTC
{
@@ -186,7 +188,7 @@ void ByteIn(u8 val)
case 0x40:
if (InputPos == 1) StatusReg2 = val;
- if (StatusReg2 & 0x4F) printf("RTC INTERRUPT ON: %02X\n", StatusReg2);
+ if (StatusReg2 & 0x4F) Log(LogLevel::Debug, "RTC INTERRUPT ON: %02X\n", StatusReg2);
break;
case 0x20: