From a53b18585583de98a3fe3adf655b242c76ea9fab Mon Sep 17 00:00:00 2001 From: Darrell Anderson Date: Mon, 11 Nov 2013 17:27:20 -0600 Subject: [PATCH] Add source code module name to stdout/stderr messages to improve readability. --- tdecore/klockfile.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tdecore/klockfile.cpp b/tdecore/klockfile.cpp index 1f4f8337e..e7133a11e 100644 --- a/tdecore/klockfile.cpp +++ b/tdecore/klockfile.cpp @@ -206,7 +206,7 @@ static TDELockFile::LockResult deleteStaleLock(const TQString &lockFile, KDE_str if ((KDE_lstat(lckFile, &st_buf2) == 0) && statResultIsEqual(st_buf1, st_buf2)) { // - - if yes, delete lock file, delete temp file, retry lock - tqWarning("WARNING: deleting stale lockfile %s", lckFile.data()); + tqWarning("[tdecore] Deleting stale lockfile %s", lckFile.data()); ::unlink(lckFile); ::unlink(tmpFile); return TDELockFile::LockOK; @@ -224,14 +224,14 @@ static TDELockFile::LockResult deleteStaleLock(const TQString &lockFile, KDE_str statResultIsEqual(st_buf, st_buf2)) { // Without support for link counts we will have a little race condition - tqWarning("WARNING: deleting stale lockfile %s", lckFile.data()); + tqWarning("[tdecore] Deleting stale lockfile %s", lckFile.data()); ::unlink(lckFile); ::unlink(tmpFile); return TDELockFile::LockOK; } // Failed to delete stale lock file - tqWarning("WARNING: Problem deleting stale lockfile %s", lckFile.data()); + tqWarning("[tdecore] WARNING: Problem deleting stale lockfile %s", lckFile.data()); ::unlink(tmpFile); return TDELockFile::LockFail; }