]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/arm-ds5-gator.git/blobdiff - daemon/Logging.h
gator-daemon: ARM DS-5.9 Streamline gator daemon (RC2)
[android-sdk/arm-ds5-gator.git] / daemon / Logging.h
index cd8d7cd1e21d8f58aacbaf340de02535e50bb9a2..424796658f7dd0e111b66dbb708cd96972db2bc0 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * Copyright (C) ARM Limited 2010-2011. All rights reserved.
+ * Copyright (C) ARM Limited 2010-2012. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License version 2 as
 #include <limits.h>
 #ifdef WIN32
 #include <windows.h>
-#define GATOR_PATH_MAX MAX_PATH
 #else
 #include <pthread.h>
-#define GATOR_PATH_MAX PATH_MAX
 #endif
 
 #define DRIVER_ERROR "\n Driver issue:\n  >> gator.ko must be built against the current kernel version & configuration\n  >> gator.ko should be co-located with gatord in the same directory\n  >>   OR insmod gator.ko prior to launching gatord"
@@ -28,16 +26,13 @@ public:
        ~Logging();
        void logError(const char* file, int line, const char* fmt, ...);
        void logMessage(const char* fmt, ...);
-       void SetWarningFile(char* path) {strncpy(mWarningXMLPath, path, GATOR_PATH_MAX); mWarningXMLPath[GATOR_PATH_MAX - 1] = 0;}
        char* getLastError() {return mErrBuf;}
        char* getLastMessage() {return mLogBuf;}
 
 private:
-       char    mWarningXMLPath[GATOR_PATH_MAX];
        char    mErrBuf[4096]; // Arbitrarily large buffer to hold a string
        char    mLogBuf[4096]; // Arbitrarily large buffer to hold a string
        bool    mDebug;
-       bool    mFileCreated;
 #ifdef WIN32
        HANDLE  mLoggingMutex;
 #else