2 * Copyright (c) 1989 Regents of the University of California.
3 * All rights reserved. The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
11 * log: Make a log entry
15 pop_log(POP
*p
, int stat
, char *format
, ...)
17 char msgbuf
[MAXLINELEN
];
21 vsnprintf(msgbuf
, sizeof(msgbuf
), format
, ap
);
23 if (p
->debug
&& p
->trace
) {
24 fprintf(p
->trace
,"%s\n",msgbuf
);
28 krb5_log(p
->context
, p
->logf
, stat
, "%s", msgbuf
);
30 syslog (stat
,"%s",msgbuf
);