From 7bd7fe3ff9e607ecf4cff7aeb6ab8cd8ae77460c 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. (cherry picked from commit a53b18585583de98a3fe3adf655b242c76ea9fab) --- kdecore/klockfile.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kdecore/klockfile.cpp b/kdecore/klockfile.cpp index 3bd6edb30..d1b45959d 100644 --- a/kdecore/klockfile.cpp +++ b/kdecore/klockfile.cpp @@ -206,7 +206,7 @@ static KLockFile::LockResult deleteStaleLock(const TQString &lockFile, KDE_struc if ((KDE_lstat(lckFile, &st_buf2) == 0) && statResultIsEqual(st_buf1, st_buf2)) { // - - if yes, delete lock file, delete temp file, retry lock - qWarning("WARNING: deleting stale lockfile %s", lckFile.data()); + qWarning("[kdecore] Deleting stale lockfile %s", lckFile.data()); ::unlink(lckFile); ::unlink(tmpFile); return KLockFile::LockOK; @@ -224,14 +224,14 @@ static KLockFile::LockResult deleteStaleLock(const TQString &lockFile, KDE_struc statResultIsEqual(st_buf, st_buf2)) { // Without support for link counts we will have a little race condition - qWarning("WARNING: deleting stale lockfile %s", lckFile.data()); + qWarning("[kdecore] Deleting stale lockfile %s", lckFile.data()); ::unlink(lckFile); ::unlink(tmpFile); return KLockFile::LockOK; } // Failed to delete stale lock file - qWarning("WARNING: Problem deleting stale lockfile %s", lckFile.data()); + qWarning("[kdecore] WARNING: Problem deleting stale lockfile %s", lckFile.data()); ::unlink(tmpFile); return KLockFile::LockFail; }