PatchSet 7298 
Date: 2006/05/24 15:58:22
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
cleaned up debug messages in pthreads

2006-05-24  Dalibor Topic  <[EMAIL PROTECTED]>

        * kaffe/kaffevm/systems/unix-pthreads/thread-impl.c
        (TMSG_SHORT, TMSG_LONG, CHECK_CURRENT_THREAD): Don't
        attempt to print pthread_t since it can be a pointer to
        a struct, or something else on some platforms.

Members: 
        ChangeLog:1.4802->1.4803 
        kaffe/kaffevm/systems/unix-pthreads/thread-impl.c:1.90->1.91 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.4802 kaffe/ChangeLog:1.4803
--- kaffe/ChangeLog:1.4802      Wed May 24 13:40:28 2006
+++ kaffe/ChangeLog     Wed May 24 15:58:22 2006
@@ -1,5 +1,12 @@
 2006-05-24  Dalibor Topic  <[EMAIL PROTECTED]>
 
+       * kaffe/kaffevm/systems/unix-pthreads/thread-impl.c
+       (TMSG_SHORT, TMSG_LONG, CHECK_CURRENT_THREAD): Don't
+       attempt to print pthread_t since it can be a pointer to 
+       a struct, or something else on some platforms.
+
+2006-05-24  Dalibor Topic  <[EMAIL PROTECTED]>
+
        * kaffe/kaffevm/kaffe-gc/gc-mem.c (gc_block_alloc):
        Use %zu format for printing size_t value to fix
        compiler warning on powerpc-darwin.
Index: kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c
diff -u kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c:1.90 
kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c:1.91
--- kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c:1.90        Sun Apr 
16 07:20:16 2006
+++ kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c     Wed May 24 
15:58:25 2006
@@ -4,7 +4,7 @@
  * Copyright (c) 1998
  *      Transvirtual Technologies, Inc.  All rights reserved.
  *
- * Copyright (c) 2005
+ * Copyright (c) 2005, 2006
  *      Kaffe.org contributors.  See ChangeLog for details. 
  *      All rights reserved.
  *
@@ -68,19 +68,19 @@
 static char stat_block[] = { ' ', 'T', 'm', ' ', 'c', ' ', ' ', ' ', 't', ' ', 
' ' };
 
 #define TMSG_SHORT(_msg,_nt)     \
-   dprintf(_msg" %p [tid:%4lx, java:%p]\n", \
-    _nt, _nt->tid, _nt->data.jlThread)
+   dprintf(_msg" %p [java:%p]\n", \
+    _nt, _nt->data.jlThread)
 
 #define TMSG_LONG(_msg,_nt)      \
-   dprintf(_msg" %p [tid:%4lx, java:%p], stack [%p..%p..%p], state: %c%c%c\n", 
        \
-        _nt, _nt->tid, _nt->data.jlThread, _nt->stackMin, _nt->stackCur, 
_nt->stackMax,  \
+   dprintf(_msg" %p [java:%p], stack [%p..%p..%p], state: %c%c%c\n",         \
+        _nt, _nt->data.jlThread, _nt->stackMin, _nt->stackCur, _nt->stackMax,  
\
         stat_act[_nt->active], stat_susp[_nt->suspendState], 
stat_block[_nt->blockState])
 
 #define CHECK_CURRENT_THREAD(_nt)                                          \
   if ( ((uintp) &_nt < (uintp) _nt->stackMin) ||           \
        ((uintp) &_nt > (uintp) _nt->stackMax) ) {          \
-    printf( "?? inconsistent current thread: %x [tid: %d, java: %x]\n",    \
-                    _nt, _nt->tid, _nt->data.jlThread);                        
           \
+    printf( "?? inconsistent current thread: %x [java: %x]\n",    \
+                    _nt, _nt->data.jlThread);                                  
 \
     tDump();                                                               \
   }
 

_______________________________________________
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe

Reply via email to