aboutsummaryrefslogtreecommitdiffstats
path: root/www/varnish2/files/patch-svn-r1754
blob: b2cdf2015edb340a4cfd092c4438a78ea47e360a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Index: bin/varnishreplay/varnishreplay.c
===================================================================
--- bin/varnishreplay/varnishreplay.c   (revision 1753)
+++ bin/varnishreplay/varnishreplay.c   (revision 1754)
@@ -145,7 +145,7 @@
    if (lvl > debug)
        return;
    pthread_mutex_lock(&log_mutex);
-   fprintf(stderr, "%08x ", (unsigned int)pthread_self());
+   fprintf(stderr, "%p ", (void *)pthread_self());
    va_start(ap, fmt);
    vfprintf(stderr, fmt, ap);
    va_end(ap);
@@ -183,8 +183,8 @@
            mailbox_destroy(&threads[fd]->mbox);
            freez(threads[fd]);
        }
-       thread_log(1, "thread %08x started\n",
-           (unsigned int)threads[fd]->thread_id);
+       thread_log(1, "thread %p started\n",
+           (void *)threads[fd]->thread_id);
    }
    return (threads[fd]);
 }
@@ -204,8 +204,8 @@
        return;
    mailbox_close(&threads[fd]->mbox);
    pthread_join(threads[fd]->thread_id, NULL);
-   thread_log(1, "thread %08x stopped\n",
-       (unsigned int)threads[fd]->thread_id);
+   thread_log(1, "thread %p stopped\n",
+       (void *)threads[fd]->thread_id);
    mailbox_destroy(&threads[fd]->mbox);
    freez(threads[fd]);
 }