apps/networkstatus Fix PVS966

*	replace unformatted printf with puts

	*	also add translation for one error message

Change-Id: I48f65af633a39c5f7d4ab359ec8b648c9b869fd4
Reviewed-on: https://review.haiku-os.org/c/962
Reviewed-by: Adrien Destugues <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
This commit is contained in:
Rob Gill
2019-01-29 12:20:00 +00:00
committed by Jérôme Duval
parent b726920e3f
commit d7e7e13c67
+4 -3
View File
@@ -89,8 +89,8 @@ NetworkStatus::ArgvReceived(int32 argc, char** argv)
|| strcmp(argv[1], "-h") == 0) {
const char* str = B_TRANSLATE("NetworkStatus options:\n"
"\t--deskbar\tautomatically add replicant to Deskbar\n"
"\t--help\t\tprint this info and exit\n");
printf(str);
"\t--help\t\tprint this info and exit");
puts(str);
fQuitImmediately = true;
return;
}
@@ -142,7 +142,8 @@ NetworkStatus::ReadyToRun()
}
#endif
if (!isDeskbarRunning) {
printf("Deskbar is not running, giving up.\n");
const char* str = B_TRANSLATE("Deskbar is not running, giving up.");
puts(str);
Quit();
return;
}