summaryrefslogtreecommitdiffstats
path: root/kinit
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2012-03-07 17:20:23 -0600
committerSlávek Banko <slavek.banko@axis.cz>2013-03-04 02:54:09 +0100
commit16634b6621a8d178b46b4bf1c5101fbc24e59185 (patch)
treeb6dab5c953d65028aee5bf365bdbae22347d1eb9 /kinit
parent07dc183ea41e91874c2b845385ae4cbab9e14cae (diff)
downloadtdelibs-16634b6621a8d178b46b4bf1c5101fbc24e59185.tar.gz
tdelibs-16634b6621a8d178b46b4bf1c5101fbc24e59185.zip
Add source code module name to stdout/stderr messages to improve readability.
(cherry picked from commit 550ae6f7973fd16f5fc93c792ffdfe9dfba17bd4)
Diffstat (limited to 'kinit')
-rw-r--r--kinit/klauncher_main.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kinit/klauncher_main.cpp b/kinit/klauncher_main.cpp
index 80b96980c..1ec279eb4 100644
--- a/kinit/klauncher_main.cpp
+++ b/kinit/klauncher_main.cpp
@@ -40,7 +40,7 @@ static void sig_handler(int sig_num)
// No recursion
signal( SIGHUP, SIG_IGN);
signal( SIGTERM, SIG_IGN);
-fprintf(stderr, "klauncher: Exiting on signal %d\n", sig_num);
+ fprintf(stderr, "[klauncher] Exiting on signal %d\n", sig_num);
KLauncher::destruct(255);
}
@@ -55,8 +55,8 @@ extern "C" KDE_EXPORT int kdemain( int argc, char**argv )
// Started via kdeinit.
if (fcntl(LAUNCHER_FD, F_GETFD) == -1)
{
- fprintf(stderr, "%s", i18n("klauncher: This program is not supposed to be started manually.\n"
- "klauncher: It is started automatically by kdeinit.\n").local8Bit().data());
+ fprintf(stderr, "%s", i18n("[klauncher] This program is not supposed to be started manually.\n"
+ "[klauncher] It is started automatically by kdeinit.\n").local8Bit().data());
return 1;
}
@@ -82,7 +82,7 @@ extern "C" KDE_EXPORT int kdemain( int argc, char**argv )
TQCString dcopName = KApplication::dcopClient()->registerAs(name, false);
if (dcopName.isEmpty())
{
- kdWarning() << "DCOP communication problem!" << endl;
+ kdWarning() << "[klauncher] DCOP communication problem!" << endl;
return 1;
}
if (dcopName == cname)
@@ -90,12 +90,12 @@ extern "C" KDE_EXPORT int kdemain( int argc, char**argv )
if (--maxTry == 0)
{
- kdWarning() << "Another instance of klauncher is already running!" << endl;
+ kdWarning() << "[klauncher] Another instance of klauncher is already running!" << endl;
return 1;
}
// Wait a bit...
- kdWarning() << "Waiting for already running klauncher to exit." << endl;
+ kdWarning() << "[klauncher] Waiting for already running klauncher to exit." << endl;
sleep(1);
// Try again...