diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2012-03-07 17:16:42 -0600 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2013-03-04 02:54:07 +0100 |
commit | 9cbbfe8fae91f66663903deba27dd74ea6549c45 (patch) | |
tree | 014c69608b6822bbfa97258c7e4240a65a2dce46 /kded | |
parent | 15177ca24ac9516e7055c56de38a41be11354d64 (diff) | |
download | tdelibs-9cbbfe8fae91f66663903deba27dd74ea6549c45.tar.gz tdelibs-9cbbfe8fae91f66663903deba27dd74ea6549c45.zip |
Add source code module name to stdout/stderr messages to improve readability.
(cherry picked from commit e50a9f060c0e376c17d8033d8c5ef56289b37b5e)
Diffstat (limited to 'kded')
-rw-r--r-- | kded/kbuildsycoca.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kded/kbuildsycoca.cpp b/kded/kbuildsycoca.cpp index 55cd97ee4..62394f2eb 100644 --- a/kded/kbuildsycoca.cpp +++ b/kded/kbuildsycoca.cpp @@ -476,7 +476,7 @@ bool KBuildSycoca::recreate() } if (database->status() != 0) { - fprintf(stderr, "kbuildsycoca: ERROR creating database '%s'! %s\n", path.local8Bit().data(),strerror(database->status())); + fprintf(stderr, "[kbuildsycoca] ERROR creating database '%s'! %s\n", path.local8Bit().data(),strerror(database->status())); #ifdef KBUILDSYCOCA_GUI // KBUILDSYCOCA_GUI is used on win32 to build // GUI version of kbuildsycoca, so-called "kbuildsycocaw". if (!silent) @@ -505,11 +505,11 @@ bool KBuildSycoca::recreate() m_str = 0L; if (!database->close()) { - fprintf(stderr, "kbuildsycoca: ERROR writing database '%s'!\n", database->name().local8Bit().data()); - fprintf(stderr, "kbuildsycoca: Disk full?\n"); + fprintf(stderr, "[kbuildsycoca] ERROR writing database '%s'!\n", database->name().local8Bit().data()); + fprintf(stderr, "[kbuildsycoca] Disk full?\n"); #ifdef KBUILDSYCOCA_GUI if (!silent) - KMessageBox::error(0, i18n("Error writing database '%1'.\nCheck that the permissions are correct on the directory and the disk is not full.\n").arg(path.local8Bit().data()), i18n("KBuildSycoca")); + KMessageBox::error(0, i18n("[kbuildsycoca] Error writing database '%1'.\nCheck that the permissions are correct on the directory and the disk is not full.\n").arg(path.local8Bit().data()), i18n("KBuildSycoca")); #endif return false; } @@ -777,14 +777,14 @@ extern "C" KDE_EXPORT int kdemain(int argc, char **argv) TQCString registeredName = dcopClient->registerAs(appName, false); if (registeredName.isEmpty()) { - fprintf(stderr, "Warning: %s is unable to register with DCOP.\n", appName); + fprintf(stderr, "[kbuildsycoca] Warning: %s is unable to register with DCOP.\n", appName); break; } else if (registeredName == appName) { break; // Go } - fprintf(stderr, "Waiting for already running %s to finish.\n", appName); + fprintf(stderr, "[kbuildsycoca] Waiting for already running %s to finish.\n", appName); dcopClient->setNotifications( true ); while (dcopClient->isApplicationRegistered(appName)) @@ -796,7 +796,7 @@ extern "C" KDE_EXPORT int kdemain(int argc, char **argv) } dcopClient->setNotifications( false ); } - fprintf(stderr, "%s running...\n", appName); + fprintf(stderr, "[kbuildsycoca] %s running...\n", appName); bool checkfiles = bGlobalDatabase || args->isSet("checkfiles"); @@ -870,7 +870,7 @@ extern "C" KDE_EXPORT int kdemain(int argc, char **argv) g_ctimeDict = 0; if (incremental) { - qWarning("Reusing existing ksycoca"); + qWarning("[kbuildsycoca] Reusing existing ksycoca."); KSycoca *oldSycoca = KSycoca::self(); KSycocaFactoryList *factories = new KSycocaFactoryList; g_allEntries = new KSycocaEntryListList; @@ -950,7 +950,7 @@ extern "C" KDE_EXPORT int kdemain(int argc, char **argv) #ifdef KBUILDSYCOCA_GUI if (!silent) { progress.close(); - KMessageBox::information(0, i18n("Configuration information reloaded successfully."), capt); + KMessageBox::information(0, i18n("[kbuildsycoca] Configuration information reloaded successfully."), capt); } #endif return 0; |