From 3b240b60f05bd6fec34413791e1d215afc2bdde5 Mon Sep 17 00:00:00 2001 From: Javier Date: Sat, 30 Apr 2022 21:45:45 +0200 Subject: refactor: switch debug log to a more convenient printf-like API --- unixtime.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'unixtime.h') 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 -- cgit v1.2.3