diff options
| author | Donald Sharp <sharpd@nvidia.com> | 2021-03-09 20:02:26 -0500 |
|---|---|---|
| committer | Donald Sharp <sharpd@nvidia.com> | 2021-03-09 20:02:26 -0500 |
| commit | 957cfa2466c319d3fc2b5c3015fb8b240f12bab7 (patch) | |
| tree | 6afcc3e11ea01172c306d51cdb5d454a6d9483e2 /watchfrr | |
| parent | c067e23e547425d779fa362674befe82db558a48 (diff) | |
watchfrr: Convert to not use warning in warning messages
We do not need to display: `Warning: ...` in a zlog_warn
message
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'watchfrr')
| -rw-r--r-- | watchfrr/watchfrr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/watchfrr/watchfrr.c b/watchfrr/watchfrr.c index 441320b193..5f4d564507 100644 --- a/watchfrr/watchfrr.c +++ b/watchfrr/watchfrr.c @@ -316,7 +316,7 @@ static pid_t run_background(char *shell_cmd) /* Use separate process group so child processes can be killed * easily. */ if (setpgid(0, 0) < 0) - zlog_warn("warning: setpgid(0,0) failed: %s", + zlog_warn("setpgid(0,0) failed: %s", safe_strerror(errno)); { char shell[] = "sh"; @@ -356,7 +356,7 @@ static int restart_kill(struct thread *t_kill) time_elapsed(&delay, &restart->time); zlog_warn( - "Warning: %s %s child process %d still running after %ld seconds, sending signal %d", + "%s %s child process %d still running after %ld seconds, sending signal %d", restart->what, restart->name, (int)restart->pid, (long)delay.tv_sec, (restart->kills ? SIGKILL : SIGTERM)); kill(-restart->pid, (restart->kills ? SIGKILL : SIGTERM)); @@ -423,7 +423,7 @@ static void sigchild(void) what = "background"; } if (WIFSTOPPED(status)) - zlog_warn("warning: %s %s process %d is stopped", what, name, + zlog_warn("%s %s process %d is stopped", what, name, (int)child); else if (WIFSIGNALED(status)) zlog_warn("%s %s process %d terminated due to signal %d", what, |
