From: Kevin M. Rosenberg Date: Thu, 7 Sep 2000 04:31:41 +0000 (+0000) Subject: r192: *** empty log message *** X-Git-Tag: debian-4.5.3-3~825 X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=commitdiff_plain;h=2203f9e98dbc4aa7cb23d00517a0f249dd1dfb03 r192: *** empty log message *** --- diff --git a/configure.in b/configure.in index 78a6713..ee4bc51 100644 --- a/configure.in +++ b/configure.in @@ -99,7 +99,7 @@ AC_STRUCT_TM dnl Checks for library functions. AC_FUNC_VPRINTF -AC_CHECK_FUNCS(strtod strtol snprintf htonl usleep) +AC_CHECK_FUNCS(strtod strtol snprintf htonl usleep vsprintf vsnprintf) AC_CHECK_FUNC(basename) AC_CHECK_FUNC(setjmp) AC_CHECK_FUNC(setpriority) diff --git a/libctsupport/syserror.cpp b/libctsupport/syserror.cpp index 939f024..6d0900d 100644 --- 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 ** -** $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 @@ -85,11 +85,16 @@ void sys_verror (int severity, const char *msg, va_list arg) cout << "WARNING ERROR: "; break; default: - sys_error (ERR_FATAL, "illegal error code #%d [sys_error]", severity); + cout << "Illegal error code #" << severity << ": "; } char errStr[512]; +#if HAVE_VSNPRINTF vsnprintf (errStr, sizeof(errStr), msg, arg); +#elif HAVE_VSPRINTF + vsprintf (errStr, msg, arg); +#endif + cout << errStr << endl; if (severity == ERR_FATAL)