diff options
Diffstat (limited to 'lib/Utils')
| -rw-r--r-- | lib/Utils/DebugDump.cpp | 4 | ||||
| -rw-r--r-- | lib/Utils/DebugDump.h | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/Utils/DebugDump.cpp b/lib/Utils/DebugDump.cpp index f5c7319..d5eeb77 100644 --- a/lib/Utils/DebugDump.cpp +++ b/lib/Utils/DebugDump.cpp @@ -208,7 +208,7 @@ void CDebugDump::UnLock() } } -void CDebugDump::Create(const std::string& pDir, uid_t uid) +void CDebugDump::Create(const std::string& pDir, uint64_t uid) { if (m_bOpened) { @@ -245,7 +245,7 @@ void CDebugDump::Create(const std::string& pDir, uid_t uid) perror_msg("can't change '%s' ownership to %u:%u", m_sDebugDumpDir.c_str(), (int)uid, (int)gid); } - SaveText(FILENAME_UID, ssprintf("%u", (int)uid)); + SaveText(FILENAME_UID, ssprintf("%li", uid)); SaveKernelArchitectureRelease(); SaveTime(); } diff --git a/lib/Utils/DebugDump.h b/lib/Utils/DebugDump.h index 687bac7..fae6420 100644 --- a/lib/Utils/DebugDump.h +++ b/lib/Utils/DebugDump.h @@ -25,6 +25,7 @@ #include <string> #include <dirent.h> +#include <stdint.h> #define FILENAME_ARCHITECTURE "architecture" #define FILENAME_KERNEL "kernel" @@ -60,7 +61,7 @@ class CDebugDump ~CDebugDump() { Close(); } void Open(const std::string& pDir); - void Create(const std::string& pDir, uid_t nUID); + void Create(const std::string& pDir, uint64_t uid); void Delete(); void Close(); |
