From: Nathan Neulinger Date: Sun, 12 Jan 2003 02:02:48 +0000 (+0000) Subject: salvager-fast-restart-log-to-syslog-also-20030111 X-Git-Tag: openafs-devel-1_3_50~438 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=ab64672f2b2ea4bf2b7eccf1aab1b0fc1ad6fb5f;p=packages%2Fo%2Fopenafs.git salvager-fast-restart-log-to-syslog-also-20030111 if -syslog, also log this to syslog --- diff --git a/src/vol/vol-salvage.c b/src/vol/vol-salvage.c index ba4cafe6d..beee0131a 100644 --- a/src/vol/vol-salvage.c +++ b/src/vol/vol-salvage.c @@ -496,7 +496,13 @@ static handleit(as) } } if (!seenany) { - printf("Exiting immediately without salvage. Look into the FileLog to find volumes which really need to be salvaged!\n"); + char *msg = "Exiting immediately without salvage. Look into the FileLog to find volumes which really need to be salvaged!"; + + if ( useSyslog ) + Log(msg); + else + printf("%s\n", msg); + Exit(0); } #endif /* FAST_RESTART */ @@ -588,8 +594,12 @@ static handleit(as) #ifdef FAST_RESTART if (ti = as->parms[18].items) { /* -DontSalvage */ - printf("Exiting immediately without salvage. Look into the FileLog"); - printf(" to find volumes which really need to be salvaged!\n"); + char *msg = "Exiting immediately without salvage. Look into the FileLog to find volumes which really need to be salvaged!"; + + if ( useSyslog ) + Log(msg); + else + printf("%s\n", msg); Exit(0); } #endif /* FAST_RESTART */