summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Utils/DebugDump.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/Utils/DebugDump.cpp b/lib/Utils/DebugDump.cpp
index 03fb7c64..4d6d92c3 100644
--- a/lib/Utils/DebugDump.cpp
+++ b/lib/Utils/DebugDump.cpp
@@ -106,7 +106,6 @@ static int GetAndSetLock(const char* pLockFile, const char* pPID)
if (errno != EEXIST)
perror_msg_and_die("Can't create lock file '%s'", pLockFile);
fd = open(pLockFile, O_RDONLY);
-log("opened O_RDONLY: '%s'", pLockFile);
if (fd < 0)
{
if (errno == ENOENT)
@@ -125,7 +124,6 @@ log("opened O_RDONLY: '%s'", pLockFile);
continue;
}
pid_buf[r] = '\0';
-log("read: '%s'", pid_buf);
if (strcmp(pid_buf, pPID) == 0)
{
log("Lock file '%s' is already locked by us", pLockFile);
@@ -143,7 +141,6 @@ log("read: '%s'", pid_buf);
/* The file may be deleted by now by other process. Ignore errors */
unlink(pLockFile);
}
-log("created O_EXCL: '%s'", pLockFile);
int len = strlen(pPID);
if (write(fd, pPID, len) != len)
@@ -331,10 +328,8 @@ void CDebugDump::SaveKernelArchitectureRelease()
void CDebugDump::SaveTime()
{
- std::stringstream ss;
time_t t = time(NULL);
- ss << t;
- SaveText(FILENAME_TIME, ss.str());
+ SaveText(FILENAME_TIME, to_string(t));
}
static void LoadTextFile(const std::string& pPath, std::string& pData)