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
@@ -540,7 +540,7 @@ component_verify (struct component *comp, grecs_locus_t *locus) | |||
540 | if (!comp->service) | 540 | if (!comp->service) |
541 | /* TRANSLATORS: do not translate quoted words, they are keywords. */ | 541 | /* TRANSLATORS: do not translate quoted words, they are keywords. */ |
542 | COMPERR (grecs_error, | 542 | COMPERR (grecs_error, |
543 | "%s", _("`internal' used without `service'")); | 543 | "%s", _("\"internal\" used without \"service\"")); |
544 | else | 544 | else |
545 | { | 545 | { |
546 | comp->builtin = inetd_builtin_lookup (comp->service, | 546 | comp->builtin = inetd_builtin_lookup (comp->service, |
@@ -552,7 +552,7 @@ component_verify (struct component *comp, grecs_locus_t *locus) | |||
552 | /* TRANSLATORS: do not translate quoted words, they are | 552 | /* TRANSLATORS: do not translate quoted words, they are |
553 | keywords. */ | 553 | keywords. */ |
554 | COMPERR (grecs_error, | 554 | COMPERR (grecs_error, |
555 | "%s", _("`internal' used with `command'")); | 555 | "%s", _("\"internal\" used with \"command\"")); |
556 | } | 556 | } |
557 | } | 557 | } |
558 | else if (!comp->argv) | 558 | else if (!comp->argv) |
@@ -565,11 +565,11 @@ component_verify (struct component *comp, grecs_locus_t *locus) | |||
565 | if ((comp->flags & (CF_TCPMUX | CF_TCPMUXPLUS)) | 565 | if ((comp->flags & (CF_TCPMUX | CF_TCPMUXPLUS)) |
566 | == (CF_TCPMUX | CF_TCPMUXPLUS)) | 566 | == (CF_TCPMUX | CF_TCPMUXPLUS)) |
567 | COMPERR (grecs_error, | 567 | COMPERR (grecs_error, |
568 | "%s", _("both `tcpmux' and `tcpmuxplus' used")); | 568 | "%s", _("both \"tcpmux\" and \"tcpmuxplus\" used")); |
569 | else if (!comp->service) | 569 | else if (!comp->service) |
570 | /* TRANSLATORS: do not translate quoted words, they are keywords. */ | 570 | /* TRANSLATORS: do not translate quoted words, they are keywords. */ |
571 | COMPERR (grecs_error, | 571 | COMPERR (grecs_error, |
572 | "%s", _("`internal' used without `service'")); | 572 | "%s", _("\"internal\" used without \"service\"")); |
573 | } | 573 | } |
574 | 574 | ||
575 | if (comp->pass_fd_socket && comp->mode != pies_comp_pass_fd) | 575 | if (comp->pass_fd_socket && comp->mode != pies_comp_pass_fd) |
@@ -660,7 +660,7 @@ component_verify (struct component *comp, grecs_locus_t *locus) | |||
660 | && comp->redir[RETR_OUT].type != redir_null) | 660 | && comp->redir[RETR_OUT].type != redir_null) |
661 | { | 661 | { |
662 | COMPERR (grecs_error, | 662 | COMPERR (grecs_error, |
663 | "%s", _("stdout translation invalid in this mode")); | 663 | "%s", _("stdout redirection invalid in this mode")); |
664 | comp->redir[RETR_OUT].type = redir_null; | 664 | comp->redir[RETR_OUT].type = redir_null; |
665 | } | 665 | } |
666 | 666 | ||