Mailinglist Archive: zypp-commit (149 mails)

< Previous Next >
[zypp-svn] r5327 - /trunk/libzypp/zypp/base/Logger.h
  • From: mlandres@xxxxxxxxxxxxxxxx
  • Date: Tue, 10 Apr 2007 18:01:00 -0000
  • Message-id: <20070410180100.50A086B26A@xxxxxxxxxxxxxxxx>
Author: mlandres
Date: Tue Apr 10 20:00:59 2007
New Revision: 5327

URL: http://svn.opensuse.org/viewcvs/zypp?rev=5327&view=rev
Log:
work around __FILE__ being defined as absolute path

Modified:
    trunk/libzypp/zypp/base/Logger.h

Modified: trunk/libzypp/zypp/base/Logger.h
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/base/Logger.h?rev=5327&r1=5326&r2=5327&view=diff
==============================================================================
--- trunk/libzypp/zypp/base/Logger.h (original)
+++ trunk/libzypp/zypp/base/Logger.h Tue Apr 10 20:00:59 2007
@@ -59,9 +59,11 @@
 #define _INT(GROUP) ZYPP_BASE_LOGGER_LOG( GROUP, zypp::base::logger::E_INT )
 #define _USR(GROUP) ZYPP_BASE_LOGGER_LOG( GROUP, zypp::base::logger::E_USR )
 
+#define _BASEFILE ( *__FILE__ == '/' ? strrchr( __FILE__, '/' ) + 1 : __FILE__ )
+
 /** Actual call to @ref getStream. */
 #define ZYPP_BASE_LOGGER_LOG(GROUP,LEVEL) \
-        zypp::base::logger::getStream( GROUP, LEVEL, __FILE__, __FUNCTION__, __LINE__ )
+        zypp::base::logger::getStream( GROUP, LEVEL, _BASEFILE, __FUNCTION__, __LINE__ )
 
 /*@}*/
 

--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages