[master] c1f65aa Don't rely on %p format having 0x prefix
    Poul-Henning Kamp 
    phk at FreeBSD.org
       
    Tue Mar  3 14:28:40 CET 2015
    
    
  
commit c1f65aa14b06fc620ee005ea8aea53e2c6240a00
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Tue Mar 3 13:28:24 2015 +0000
    Don't rely on %p format having 0x prefix
diff --git a/lib/libvmod_debug/vmod_debug.c b/lib/libvmod_debug/vmod_debug.c
index 9dcfb7d..f102247 100644
--- a/lib/libvmod_debug/vmod_debug.c
+++ b/lib/libvmod_debug/vmod_debug.c
@@ -192,7 +192,8 @@ exp_cb(struct worker *wrk, struct objcore *oc, enum exp_event_e ev, void *priv)
 	case EXP_REMOVE: what = "remove"; break;
 	default: WRONG("Wrong exp_event");
 	}
-	VSL(SLT_Debug, 0, "exp_cb: event %s %p", what, oc);
+	VSL(SLT_Debug, 0, "exp_cb: event %s 0x%jx", what,
+	    (intmax_t)(uintptr_t)oc);
 }
 
 VCL_VOID __match_proto__()
    
    
More information about the varnish-commit
mailing list