[master] 2980d24 Fix a printf(3) type error

Poul-Henning Kamp phk at varnish-cache.org
Tue Apr 2 10:14:02 CEST 2013


commit 2980d2441a3aa6ea6ef225375e870fc6b015ef5f
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Apr 2 08:13:47 2013 +0000

    Fix a printf(3) type error

diff --git a/bin/varnishd/mgt/mgt_child.c b/bin/varnishd/mgt/mgt_child.c
index fbb10ad..6c4780d 100644
--- a/bin/varnishd/mgt/mgt_child.c
+++ b/bin/varnishd/mgt/mgt_child.c
@@ -500,7 +500,7 @@ mgt_reap_child(void)
 		r = waitpid(child_pid, &status, 0);
 	}
 	if (r != child_pid)
-		fprintf(stderr, "WAIT 0x%x\n", r);
+		fprintf(stderr, "WAIT 0x%jx\n", (uintmax_t)r);
 	assert(r == child_pid);
 
 	/* Compose obituary */



More information about the varnish-commit mailing list