30void logmsg(
const char *who,
int ecode,
unsigned int class,
const char *msg)
44 ecode = (ecode^-1) + 1;
49 codestr =
str_cat(codestr,temp);
55 case ERROR: classstr =
"error: ";
break;
56 case FATAL: classstr =
"fatal: ";
break;
57 case DROP: classstr =
"drop: ";
break;
58 case ALERT: classstr =
"alert: ";
break;
59 case WARN: classstr =
"warning: ";
break;
60 case INFO: classstr =
"info: ";
break;
61 case SYNTAX: classstr =
"syntax: ";
break;
62 case USAGE: classstr =
"usage: ";
break;
63 case TEMP: classstr =
"temp: ";
break;
64 case CAT: classstr =
"";
break;
66 class =
LOG; classstr =
"";
break;
char * build_log_msg(const char *x[])
void logmsg(const char *who, int ecode, unsigned int class, const char *msg)
int buffer_puts(buffer *, const char *)
int buffer_flush(buffer *)
conversion function declarations
unsigned int fmt_ulong(char *, unsigned long)
int stralloc_cats(stralloc *, const char *)
int stralloc_copys(stralloc *, const char *)