You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -425,11 +425,11 @@ int killTreeFrogProcess(const QString &cmd)
425
425
426
426
TProcessInfo::kill(pids); // kills the server process
427
427
tSystemInfo("Killed TreeFrog application server processes");
428
-
printf("Killed TreeFrog application server processes\n");
428
+
std::printf("Killed TreeFrog application server processes\n");
429
429
430
430
} elseif (cmd == "restart") { // restart command
431
431
pi.restart();
432
-
printf("Sent a restart request\n");
432
+
std::printf("Sent a restart request\n");
433
433
434
434
} else {
435
435
usage();
@@ -443,7 +443,7 @@ void showProcessId()
443
443
{
444
444
qint64 pid = readPidOfApplication();
445
445
if (pid > 0) {
446
-
printf("%lld\n", pid);
446
+
std::printf("%lld\n", pid);
447
447
}
448
448
}
449
449
@@ -473,7 +473,7 @@ int managerMain(int argc, char *argv[])
473
473
int cmd = options()->value(arg, Invalid);
474
474
switch (cmd) {
475
475
case PrintVersion:
476
-
printf("%s version %s (r%d) built on %s / Qt %s\n", qPrintable(QFileInfo(argv[0]).baseName()), TF_VERSION_STR, TF_SRC_REVISION, __DATE__, qVersion());
476
+
std::printf("%s version %s (r%d) built on %s / Qt %s\n", qPrintable(QFileInfo(argv[0]).baseName()), TF_VERSION_STR, TF_SRC_REVISION, __DATE__, qVersion());
477
477
return0;
478
478
break;
479
479
@@ -497,7 +497,7 @@ int managerMain(int argc, char *argv[])
497
497
498
498
case SendSignal:
499
499
if (!i.hasNext()) {
500
-
fprintf(stderr, "Missing signal name\n");
500
+
std::fprintf(stderr, "Missing signal name\n");
501
501
return1;
502
502
}
503
503
signalCmd = i.next(); // assign a command
@@ -509,7 +509,7 @@ int managerMain(int argc, char *argv[])
509
509
510
510
case Port:
511
511
if (!i.hasNext()) {
512
-
fprintf(stderr, "Missing port number\n");
512
+
std::fprintf(stderr, "Missing port number\n");
513
513
return1;
514
514
}
515
515
listenPort = i.next().toInt();
@@ -534,7 +534,7 @@ int managerMain(int argc, char *argv[])
534
534
}
535
535
536
536
if (!app.appSettingsFileExists()) {
537
-
fprintf(stderr, "INI file not found [%s]\n\n", qPrintable(app.appSettingsFilePath()));
537
+
std::fprintf(stderr, "INI file not found [%s]\n\n", qPrintable(app.appSettingsFilePath()));
538
538
return1;
539
539
}
540
540
@@ -558,7 +558,7 @@ int managerMain(int argc, char *argv[])
0 commit comments