Changeset 6400 for trunk/licq
- Timestamp:
- 07/02/08 23:03:31 (5 months ago)
- Files:
-
- 1 modified
-
trunk/licq/src/pthread_rdwr.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/licq/src/pthread_rdwr.c
r5650 r6400 70 70 int i; 71 71 72 fprintf(file, 73 "Possible deadlock for thread %d (0x%x) trying to get a %s lock on '%s'\n", 74 (int)pthread_self(), (unsigned int)pthread_self(), 75 (reading ? "read" : "write"), rdwrp->name); 72 fprintf(file, "Possible deadlock for thread %p trying to get a %s lock on '%s'\n", 73 (void*)pthread_self(), (reading ? "read" : "write"), rdwrp->name); 76 74 77 75 if (rdwrp->writer_writing > 0) 78 76 { 79 fprintf(file, "Thread %d (0x%x) holds the write lock\n", 80 (int)rdwrp->writer, (unsigned int)rdwrp->writer); 77 fprintf(file, "Thread %p holds the write lock\n", (void*)rdwrp->writer); 81 78 } 82 79 else … … 88 85 for (i = 0; i < rdwrp->readers_reading; ++i) 89 86 { 90 fprintf(file, 91 " %d (0x%x)", 92 (int)rdwrp->readers[i], (unsigned int)rdwrp->readers[i]); 87 fprintf(file, " %p", (void*)rdwrp->readers[i]); 93 88 } 94 89 fprintf(file, "\n"); … … 119 114 if (file != NULL) 120 115 { 121 fprintf(file, "time: %lu\n", time(NULL));116 fprintf(file, "time: %lu\n", (long)time(NULL)); 122 117 print_users(file, rdwrp, reading); 123 118 fclose(file);
