Author: rfm
Date: Tue Jul 14 20:29:10 2015
New Revision: 38792

URL: http://svn.gna.org/viewcvs/gnustep?rev=38792&view=rev
Log:
cleanups

Modified:
    libs/base/trunk/Source/NSLog.m

Modified: libs/base/trunk/Source/NSLog.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Source/NSLog.m?rev=38792&r1=38791&r2=38792&view=diff
==============================================================================
--- libs/base/trunk/Source/NSLog.m      (original)
+++ libs/base/trunk/Source/NSLog.m      Tue Jul 14 20:29:10 2015
@@ -357,7 +357,7 @@
        */
       if ([threadName length] == 0)
         {
-          threadName = [NSString stringWithFormat: @"%lu", (unsigned long)t];
+          threadName = [NSString stringWithFormat: @"%p", t];
         }
     }
 
@@ -368,13 +368,13 @@
     {
       if (nil != threadName)
         {
-          [prefix appendFormat: @"[thread:%llu,%@] ",
-            (unsigned long long)GSPrivateThreadID(), threadName];
+          [prefix appendFormat: @"[thread:%"PRIuPTR",%@] ",
+            GSPrivateThreadID(), threadName];
         }
       else
         {
-          [prefix appendFormat: @"[thread:%llu] ",
-            (unsigned long long)GSPrivateThreadID()];
+          [prefix appendFormat: @"[thread:%"PRIuPTR"] ",
+            GSPrivateThreadID()];
         }
     }
   else
@@ -398,13 +398,13 @@
       [prefix appendString: [[NSProcessInfo processInfo] processName]];
       if (nil == threadName)
         {
-          [prefix appendFormat: @"[%d:%llu] ",
-            pid, (unsigned long long)GSPrivateThreadID()];
+          [prefix appendFormat: @"[%d:%"PRIuPTR"] ",
+            pid, GSPrivateThreadID()];
         }
       else
         {
-          [prefix appendFormat: @"[%d:%llu,%@] ",
-            pid, (unsigned long long)GSPrivateThreadID(), threadName];
+          [prefix appendFormat: @"[%d:%"PRIuPTR",%@] ",
+            pid, GSPrivateThreadID(), threadName];
         }
     }
 


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to