projects
/
ctsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
r192: *** empty log message ***
[ctsim.git]
/
libctsupport
/
syserror.cpp
diff --git
a/libctsupport/syserror.cpp
b/libctsupport/syserror.cpp
index 939f024bee0b29a6a6bfcb99a4b9ee7fe7bb276f..6d0900dcda89511de3eb3c7c3286246bb7ce78b1 100644
(file)
--- a/
libctsupport/syserror.cpp
+++ b/
libctsupport/syserror.cpp
@@
-2,7
+2,7
@@
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: syserror.cpp,v 1.
5 2000/08/31 08:38:58
kevin Exp $
+** $Id: syserror.cpp,v 1.
6 2000/09/07 04:31:41
kevin Exp $
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
@@
-85,11
+85,16
@@
void sys_verror (int severity, const char *msg, va_list arg)
cout << "WARNING ERROR: ";
break;
default:
cout << "WARNING ERROR: ";
break;
default:
-
sys_error (ERR_FATAL, "illegal error code #%d [sys_error]", severity)
;
+
cout << "Illegal error code #" << severity << ": "
;
}
char errStr[512];
}
char errStr[512];
+#if HAVE_VSNPRINTF
vsnprintf (errStr, sizeof(errStr), msg, arg);
vsnprintf (errStr, sizeof(errStr), msg, arg);
+#elif HAVE_VSPRINTF
+ vsprintf (errStr, msg, arg);
+#endif
+
cout << errStr << endl;
if (severity == ERR_FATAL)
cout << errStr << endl;
if (severity == ERR_FATAL)