aboutsummaryrefslogtreecommitdiff
path: root/unixtime.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2022-04-30 21:45:45 +0200
committerJavier <dev.git@javispedro.com>2022-04-30 21:45:45 +0200
commit3b240b60f05bd6fec34413791e1d215afc2bdde5 (patch)
treed7f16d7114e6f3c3ca9536074d96c5815a85f03a /unixtime.h
parent9595ebb6348544a2945470a5f271de7b58549bcd (diff)
downloadvbados-3b240b60f05bd6fec34413791e1d215afc2bdde5.tar.gz
vbados-3b240b60f05bd6fec34413791e1d215afc2bdde5.zip
refactor: switch debug log to a more convenient printf-like API
Diffstat (limited to 'unixtime.h')
-rw-r--r--unixtime.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/unixtime.h b/unixtime.h
index 57846b7..3a2a7f0 100644
--- a/unixtime.h
+++ b/unixtime.h
@@ -140,7 +140,7 @@ static void timestampns_to_dos_time(uint16_t __far *dos_time, uint16_t __far *do
day = 1 + days_since_epoch; // (day is 1-based)
if (year < DOS_EPOCH_YEAR) {
- dlog_puts("Year is too old, will show as 0");
+ dputs("Year is too old, will show as 0");
year = 0;
} else {
year -= DOS_EPOCH_YEAR;
@@ -179,12 +179,6 @@ static void timestampns_from_dos_time(int64_t *timestampns, uint16_t dos_time, u
seconds2_since_day = seconds2 + (minutes * 60U/2) + (hours * 3600U/2);
- dlog_print("days_since_epoch=");
- dlog_printd(days_since_epoch);
- dlog_print(" seconds2_since_day=");
- dlog_printd(seconds2_since_day);
- dlog_endline();
-
__asm {
push eax
push ecx