From d7b9d0f71d616674ad3d6e26b62198f33e7c5112 Mon Sep 17 00:00:00 2001 From: Joshua Wise Date: Sun, 5 Oct 2008 01:40:36 -0400 Subject: [PATCH] Make vga-overlay output its log each time you write to it, so that if the machine goes away before the next outlog(), you know why. --- aseg/vga-overlay.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aseg/vga-overlay.c b/aseg/vga-overlay.c index cfe6ac9..913ebc2 100644 --- a/aseg/vga-overlay.c +++ b/aseg/vga-overlay.c @@ -75,6 +75,7 @@ void dolog(const char *s) { strcpy(logents[prodptr], s); prodptr = (prodptr + 1) % LOGLEN; + outlog(); } void (*output)(const char *s) = dolog; @@ -86,6 +87,7 @@ void dologf(const char *fmt, ...) vsnprintf(logents[prodptr], 40, fmt, va); va_end(va); prodptr = (prodptr + 1) % LOGLEN; + outlog(); } void (*outputf)(const char *s, ...) = dologf; -- 2.43.0