diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-02-23 11:36:33 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-02-23 12:25:47 +0200 |
commit | 6e73a7b0822d1fd506c75a662070f447bba94afb (patch) | |
tree | e121c440aff73316cb43ec05295e2c32492bf5dc /src/comp.c | |
parent | 584266f8215d913ce0c226f63da51c77d1074f09 (diff) | |
download | pies-6e73a7b0822d1fd506c75a662070f447bba94afb.tar.gz pies-6e73a7b0822d1fd506c75a662070f447bba94afb.tar.bz2 |
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/comp.c')
-rw-r--r-- | src/comp.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -537,42 +537,42 @@ component_verify (struct component *comp, grecs_locus_t *locus) if (comp->flags & CF_INTERNAL) { comp->mode = pies_comp_inetd; if (!comp->service) /* TRANSLATORS: do not translate quoted words, they are keywords. */ COMPERR (grecs_error, - "%s", _("`internal' used without `service'")); + "%s", _("\"internal\" used without \"service\"")); else { comp->builtin = inetd_builtin_lookup (comp->service, comp->socket_type); if (!comp->builtin) COMPERR (grecs_error, "%s", _("unknown internal service")); if (comp->argv) /* TRANSLATORS: do not translate quoted words, they are keywords. */ COMPERR (grecs_error, - "%s", _("`internal' used with `command'")); + "%s", _("\"internal\" used with \"command\"")); } } else if (!comp->argv) COMPERR (grecs_error, "%s", _("missing command line")); if (ISCF_TCPMUX (comp->flags)) { comp->mode = pies_comp_inetd; if ((comp->flags & (CF_TCPMUX | CF_TCPMUXPLUS)) == (CF_TCPMUX | CF_TCPMUXPLUS)) COMPERR (grecs_error, - "%s", _("both `tcpmux' and `tcpmuxplus' used")); + "%s", _("both \"tcpmux\" and \"tcpmuxplus\" used")); else if (!comp->service) /* TRANSLATORS: do not translate quoted words, they are keywords. */ COMPERR (grecs_error, - "%s", _("`internal' used without `service'")); + "%s", _("\"internal\" used without \"service\"")); } if (comp->pass_fd_socket && comp->mode != pies_comp_pass_fd) COMPERR (grecs_error, "%s", _("pass-fd-socket ignored: wrong mode")); switch (comp->mode) @@ -657,13 +657,13 @@ component_verify (struct component *comp, grecs_locus_t *locus) } if (comp->mode != pies_comp_exec && comp->redir[RETR_OUT].type != redir_null) { COMPERR (grecs_error, - "%s", _("stdout translation invalid in this mode")); + "%s", _("stdout redirection invalid in this mode")); comp->redir[RETR_OUT].type = redir_null; } for (i = RETR_OUT; i <= RETR_ERR; i++) { if (comp->redir[i].type == redir_file |