diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2012-03-07 17:20:23 -0600 |
---|---|---|
committer | Darrell Anderson <humanreadable@yahoo.com> | 2012-03-07 17:20:23 -0600 |
commit | 550ae6f7973fd16f5fc93c792ffdfe9dfba17bd4 (patch) | |
tree | 309b0c7a57ef6838da2b305f3185fb8ca9274441 | |
parent | abf8c2dbe4161fe402dff161957cd6fa6cc23b0a (diff) | |
download | tdelibs-550ae6f7973fd16f5fc93c792ffdfe9dfba17bd4.tar.gz tdelibs-550ae6f7973fd16f5fc93c792ffdfe9dfba17bd4.zip |
Add source code module name to stdout/stderr messages to improve readability.
-rw-r--r-- | kinit/klauncher_main.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kinit/klauncher_main.cpp b/kinit/klauncher_main.cpp index 920234283..0842bc2c2 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 tdeinit. 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 tdeinit.\n").local8Bit().data()); + fprintf(stderr, "%s", i18n("[klauncher] This program is not supposed to be started manually.\n" + "[klauncher] It is started automatically by tdeinit.\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... |