version 1.18, 2009/10/27 23:59:42 |
version 1.19, 2013/12/21 06:29:17 |
|
|
static char *setmsgtypes(MSGFACILITY *, char *); |
static char *setmsgtypes(MSGFACILITY *, char *); |
static void _message(int, char *); |
static void _message(int, char *); |
static void _debugmsg(int, char *); |
static void _debugmsg(int, char *); |
static void _error(char *); |
static void _error(const char *); |
static void _fatalerr(char *); |
static void _fatalerr(const char *); |
|
|
/* |
/* |
* Print message logging usage message |
* Print message logging usage message |
|
|
* Stdarg front-end to _message() |
* Stdarg front-end to _message() |
*/ |
*/ |
void |
void |
message(int lvl, char *fmt, ...) |
message(int lvl, const char *fmt, ...) |
{ |
{ |
static char buf[MSGBUFSIZ]; |
static char buf[MSGBUFSIZ]; |
va_list args; |
va_list args; |
|
|
* Stdarg front-end to _debugmsg() |
* Stdarg front-end to _debugmsg() |
*/ |
*/ |
void |
void |
debugmsg(int lvl, char *fmt, ...) |
debugmsg(int lvl, const char *fmt, ...) |
{ |
{ |
static char buf[MSGBUFSIZ]; |
static char buf[MSGBUFSIZ]; |
va_list args; |
va_list args; |
|
|
* Print an error message |
* Print an error message |
*/ |
*/ |
static void |
static void |
_error(char *msg) |
_error(const char *msg) |
{ |
{ |
static char buf[MSGBUFSIZ]; |
static char buf[MSGBUFSIZ]; |
|
|
|
|
* Stdarg frontend to _error() |
* Stdarg frontend to _error() |
*/ |
*/ |
void |
void |
error(char *fmt, ...) |
error(const char *fmt, ...) |
{ |
{ |
static char buf[MSGBUFSIZ]; |
static char buf[MSGBUFSIZ]; |
va_list args; |
va_list args; |
|
|
* Display a fatal message |
* Display a fatal message |
*/ |
*/ |
static void |
static void |
_fatalerr(char *msg) |
_fatalerr(const char *msg) |
{ |
{ |
static char buf[MSGBUFSIZ]; |
static char buf[MSGBUFSIZ]; |
|
|
|
|
* Stdarg front-end to _fatalerr() |
* Stdarg front-end to _fatalerr() |
*/ |
*/ |
void |
void |
fatalerr(char *fmt, ...) |
fatalerr(const char *fmt, ...) |
{ |
{ |
static char buf[MSGBUFSIZ]; |
static char buf[MSGBUFSIZ]; |
va_list args; |
va_list args; |