path: root/src/pies.h
diff options
authorSergey Poznyakoff <gray@gnu.org.ua>2016-02-23 11:36:33 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2016-02-23 12:25:47 +0200
commit6e73a7b0822d1fd506c75a662070f447bba94afb (patch)
treee121c440aff73316cb43ec05295e2c32492bf5dc /src/pies.h
parent584266f8215d913ce0c226f63da51c77d1074f09 (diff)
Improve logging
* po/POTFILES.in: Add missing source files. * grecs: Upgrade. * src/diag.c (pies_diag_printer): New function. (logfuncall): New function. * src/pies.h: Add new prototypes. * src/pies.c (main): Initialize grecs_print_diag_fun * src/acl.c: Uniformly use double-quotes in messages. Use logfuncall where applicable. * src/comp.c: Likewise. * src/ctl.c: Likewise. * src/inetd-bi.c: Likewise. * src/inetd.c: Likewise. * src/limits.c: Likewise. * src/piesctl.c: Likewise. * src/progman.c: Likewise. * src/socket.c: Likewise. * src/sysvinit.c: Likewise.
Diffstat (limited to 'src/pies.h')
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pies.h b/src/pies.h
index 93f90b1..3528e82 100644
--- a/src/pies.h
+++ b/src/pies.h
@@ -482,6 +482,10 @@ void diagmsg (int logf, int prio, const char *fmt, ...)
void logmsg (int prio, const char *fmt, ...) PIES_PRINTFLIKE(2,3);
void logmsg_printf (int prio, const char *fmt, ...) PIES_PRINTFLIKE(2,3);
void logmsg_vprintf (int prio, const char *fmt, va_list ap);
+void logfuncall (const char *fun, const char *arg, int err);
+void pies_diag_printer (grecs_locus_t const *locus, int err, int errcode,
+ const char *msg);
extern unsigned debug_level;
extern int source_info_option;

Return to:

Send suggestions and report system problems to the System administrator.