[yast-commit] r55806 - in /trunk/storage/libstorage/src: AppUtil.cc AppUtil.h StorageCallbacks.cc
Author: aschnell Date: Thu Feb 26 22:49:55 2009 New Revision: 55806 URL: http://svn.opensuse.org/viewcvs/yast?rev=55806&view=rev Log: - removed old logging functions Modified: trunk/storage/libstorage/src/AppUtil.cc trunk/storage/libstorage/src/AppUtil.h trunk/storage/libstorage/src/StorageCallbacks.cc Modified: trunk/storage/libstorage/src/AppUtil.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/AppUtil.cc... ============================================================================== --- trunk/storage/libstorage/src/AppUtil.cc (original) +++ trunk/storage/libstorage/src/AppUtil.cc Thu Feb 26 22:49:55 2009 @@ -411,27 +411,6 @@ } -void -logMsgVaArgs(LogLevel level, const char* file, unsigned line, const char* func, - const char* format, ...) -{ - if (testLogLevel(level)) - { - char* str; - va_list ap; - - va_start(ap, format); - if (vasprintf(&str, format, ap) == -1) - return; - va_end(ap); - - logMsg(level, file, line, func, str); - - free(str); - } -} - - int readlink(const char* path, string& buf) { Modified: trunk/storage/libstorage/src/AppUtil.h URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/AppUtil.h?... ============================================================================== --- trunk/storage/libstorage/src/AppUtil.h (original) +++ trunk/storage/libstorage/src/AppUtil.h Thu Feb 26 22:49:55 2009 @@ -64,21 +64,8 @@ void logMsg(LogLevel level, const char* file, unsigned line, const char* func, const string& str); -void logMsgVaArgs(LogLevel level, const char* file, unsigned line, - const char* func, const char* format, ...) - __attribute__ ((format(printf, 5, 6))); - void prepareLogStream(std::ostringstream& s); -#define y2debug(format, ...) \ - logMsgVaArgs(storage::DEBUG, __FILE__, __LINE__, __FUNCTION__, format, ##__VA_ARGS__) -#define y2milestone(format, ...) \ - logMsgVaArgs(storage::MILESTONE, __FILE__, __LINE__, __FUNCTION__, format, ##__VA_ARGS__) -#define y2warning(format, ...) \ - logMsgVaArgs(storage::WARNING, __FILE__, __LINE__, __FUNCTION__, format, ##__VA_ARGS__) -#define y2error(format, ...) \ - logMsgVaArgs(storage::ERROR, __FILE__, __LINE__, __FUNCTION__, format, ##__VA_ARGS__) - #define y2deb(op) y2log_op(storage::DEBUG, __FILE__, __LINE__, __FUNCTION__, op) #define y2mil(op) y2log_op(storage::MILESTONE, __FILE__, __LINE__, __FUNCTION__, op) #define y2war(op) y2log_op(storage::WARNING, __FILE__, __LINE__, __FUNCTION__, op) Modified: trunk/storage/libstorage/src/StorageCallbacks.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/storage/libstorage/src/StorageCal... ============================================================================== --- trunk/storage/libstorage/src/StorageCallbacks.cc (original) +++ trunk/storage/libstorage/src/StorageCallbacks.cc Thu Feb 26 22:49:55 2009 @@ -36,11 +36,6 @@ #include <y2/Y2Component.h> #include <y2/Y2ComponentBroker.h> -#undef y2milestone -#undef y2error -#undef y2warning -#undef y2debug - #include <Storage.h> using namespace storage; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
aschnell@svn.opensuse.org