Fix logging for prettier display of class/method names.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35670 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2012-10-12 07:00:17 +00:00
parent cfde4bdb3f
commit fd66850a11
2 changed files with 10 additions and 4 deletions

View file

@ -1,3 +1,9 @@
2012-10-12 Richard Frith-Macdonald <rfm@gnu.org>
* Headers/GNUstepBase/NSDebug+GNUstepBase.h:
Fix format of logs produced by two of the three method macros ...
a bug spotted by Fred.
2012-10-03 Richard Frith-Macdonald <rfm@gnu.org>
* Source/GSFormat.m: for C-string formatting, avoid reading to the

View file

@ -149,8 +149,8 @@ GS_EXPORT NSString* GSDebugMethodMsg(id obj, SEL sel, const char *file,
*/
#define NSDebugMLLog(level, format, args...) \
do { if (GSDebugSet(level) == YES) { \
NSString *s = GSDebugFunctionMsg( \
__PRETTY_FUNCTION__, __FILE__, __LINE__, \
NSString *s = GSDebugMethodMsg( \
self, _cmd, __FILE__, __LINE__, \
[NSString stringWithFormat: format, ##args]); \
NSLog(@"%@", s); }} while (0)
@ -160,8 +160,8 @@ GS_EXPORT NSString* GSDebugMethodMsg(id obj, SEL sel, const char *file,
*/
#define NSDebugMLog(format, args...) \
do { if (GSDebugSet(@"dflt") == YES) { \
NSString *s = GSDebugFunctionMsg( \
__PRETTY_FUNCTION__, __FILE__, __LINE__, \
NSString *s = GSDebugMethodMsg( \
self, _cmd, __FILE__, __LINE__, \
[NSString stringWithFormat: format, ##args]); \
NSLog(@"%@", s); }} while (0)