aboutsummaryrefslogtreecommitdiff
path: root/src/sysvinit.c
diff options
context:
space:
mode:
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/sysvinit.c
parent584266f8215d913ce0c226f63da51c77d1074f09 (diff)
downloadpies-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/sysvinit.c')
-rw-r--r--src/sysvinit.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/sysvinit.c b/src/sysvinit.c
index cc26fa9..6bc918c 100644
--- a/src/sysvinit.c
+++ b/src/sysvinit.c
@@ -879,7 +879,7 @@ telinit (const char *arg)
fd = open (init_fifo, O_WRONLY);
if (fd < 0)
{
- logmsg (LOG_ERR, _("can't open %s: %s"), init_fifo, strerror (errno));
+ logmsg (LOG_ERR, _("cannot open %s: %s"), init_fifo, strerror (errno));
exit (EX_UNAVAILABLE);
}
if (write (fd, &req, sizeof (req)) != sizeof (req))
@@ -1173,11 +1173,10 @@ sysvinit_power (void)
}
close (fd);
if (unlink (power_stat_file))
- logmsg (LOG_ERR, _("can't unlink %s: %s"), power_stat_file,
- strerror (errno));
+ logfuncall ("unlink", power_stat_file, errno);
}
else
- debug (1, (_("can't open %s: %s"), power_stat_file, strerror (errno)));
+ debug (1, (_("cannot open %s: %s"), power_stat_file, strerror (errno)));
powerfailcmd (power_stat);
}

Return to:

Send suggestions and report system problems to the System administrator.