if -syslog, also log this to syslog
}
}
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 */
#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 */