From 815e76fb1ff1fdde7885acfaeec5e9a6b0ac574a Mon Sep 17 00:00:00 2001 From: "Charles.Forsyth" Date: Sat, 14 Jun 2008 09:07:31 +0000 Subject: 20080614-1006 --- CHANGES | 2 ++ os/port/devcons.c | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index a66686a5..435c2d33 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,5 @@ +20080614 + change os/port/devcons.c to use error not panic in sysfatal 20080612 change several libmp/port functions to use sysfatal not abort change emu/port/main.c to have sysfatal call error not exit diff --git a/os/port/devcons.c b/os/port/devcons.c index 7460cffc..2f24a36f 100644 --- a/os/port/devcons.c +++ b/os/port/devcons.c @@ -304,6 +304,9 @@ _assert(char *fmt) panic("assert failed: %s", fmt); } +/* + * mainly for libmp + */ void sysfatal(char *fmt, ...) { @@ -313,7 +316,7 @@ sysfatal(char *fmt, ...) va_start(arg, fmt); vsnprint(buf, sizeof(buf), fmt, arg); va_end(arg); - panic("sysfatal: %s", buf); + error(buf); } int -- cgit v1.2.3