From: Joshua Wise Date: Sun, 5 Oct 2008 05:40:36 +0000 (-0400) Subject: Make vga-overlay output its log each time you write to it, so that if the machine... X-Git-Url: http://git.joshuawise.com/netwatch.git/commitdiff_plain/d7b9d0f71d616674ad3d6e26b62198f33e7c5112?ds=sidebyside;hp=79de1b98fbeb6d568b655d0c901007ef9a77a365 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. --- 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;