summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Nilsson <joachim.nilsson@vmlinux.org>2009-08-27 14:08:26 (GMT)
committerJoachim Nilsson <joachim.nilsson@vmlinux.org>2009-08-27 14:08:26 (GMT)
commit3ac93e3d17eb671a6e817e79c16d9bc54bc2e100 (patch)
treec84652a4e723beaf02685535875282bd40ef0fa2
parent5f934636babbe1913dc89522a8b9566dce7f8be2 (diff)
Silence at startup, unless argument parse errors.1.0
-rw-r--r--watchdogd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/watchdogd.c b/watchdogd.c
index 9c52b32..ed8b0b3 100644
--- a/watchdogd.c
+++ b/watchdogd.c
@@ -148,7 +148,7 @@ int main(int argc, char *argv[])
if (strcmp(*av, "-w") == 0) {
if (--ac) {
wd_count = atoi(*++av);
- printf("-w switch: set watchdog counter to %d sec.\n", wd_count);
+ /* printf("-w switch: set watchdog counter to %d sec.\n", wd_count); */
} else {
fprintf(stderr, "-w switch must be followed to seconds of watchdog counter.\n");
fflush(stderr);
@@ -157,7 +157,7 @@ int main(int argc, char *argv[])
} else if (strcmp(*av, "-k") == 0) {
if (--ac) {
wd_keep_alive = atoi(*++av);
- printf("-k switch: set the heartbeat of keepalives in %d sec.\n", wd_keep_alive);
+ /* printf("-k switch: set the heartbeat of keepalives in %d sec.\n", wd_keep_alive); */
} else {
fprintf(stderr, "-k switch must be followed to seconds of heartbeat of keepalives.\n");
fflush(stderr);
@@ -170,7 +170,7 @@ int main(int argc, char *argv[])
sigaction(SIGTERM, &sa, NULL);
} else if (strcmp(*av, FOREGROUND_FLAG) == 0) {
background = 0;
- printf("Start in foreground mode.\n");
+ /* printf("Start in foreground mode.\n"); */
} else if ((strcmp(*av, "-h") == 0) || (strcmp(*av, "--help") == 0)) {
usage(argv);
exit(0);