aboutsummaryrefslogtreecommitdiffstats
path: root/gtp/queue.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-11-02 13:12:53 +0100
committerHarald Welte <laforge@gnumonks.org>2011-11-02 13:12:53 +0100
commite65c7390ca74e8da0950339917a3875185772952 (patch)
treef50bb72a060fe6aa0e978e091eb9bc906488b580 /gtp/queue.c
parentbdca4b788628ee7a920c812d522290d8e8081397 (diff)
queue: use %p format string when printing a pointer
Diffstat (limited to 'gtp/queue.c')
-rw-r--r--gtp/queue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtp/queue.c b/gtp/queue.c
index 02c18ec..c843785 100644
--- a/gtp/queue.c
+++ b/gtp/queue.c
@@ -32,7 +32,7 @@
int queue_print(struct queue_t *queue)
{
int n;
- printf("Queue: %x Next: %d First: %d Last: %d\n", (int)queue,
+ printf("Queue: %p Next: %d First: %d Last: %d\n", queue,
queue->next, queue->first, queue->last);
printf("# State seq next prev timeout retrans\n");
for (n = 0; n < QUEUE_SIZE; n++) {