From 56d592866c7734c42c0b2c0a41376e299fa3a0c2 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Mon, 30 Sep 2013 16:55:25 -0500 Subject: start-stop-daemon: fix eerorr calls in get_pid The eerror calls in this function make it too verbose, so change them to ewarnv() calls instead. This means that they will only print if the --verbose option is used or EINFO_VERBOSE=yes is set in the environment. --- src/rc/start-stop-daemon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/rc/start-stop-daemon.c b/src/rc/start-stop-daemon.c index 3a72a13e..cceb0410 100644 --- a/src/rc/start-stop-daemon.c +++ b/src/rc/start-stop-daemon.c @@ -316,12 +316,12 @@ get_pid(const char *pidfile) return -1; if ((fp = fopen(pidfile, "r")) == NULL) { - eerror("%s: fopen `%s': %s", applet, pidfile, strerror(errno)); + ewarnv("%s: fopen `%s': %s", applet, pidfile, strerror(errno)); return -1; } if (fscanf(fp, "%d", &pid) != 1) { - eerror("%s: no pid found in `%s'", applet, pidfile); + ewarnv("%s: no pid found in `%s'", applet, pidfile); fclose(fp); return -1; } -- cgit v1.2.3