From 54cfbcfae67b185b0d95dae95796b5e41ef36715 Mon Sep 17 00:00:00 2001 From: Laurent Ghigonis Date: Sat, 6 Jul 2013 02:27:04 +0200 Subject: gg_map: printf use %p for pointers --- gg_map/gg_map.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gg_map/gg_map.c') diff --git a/gg_map/gg_map.c b/gg_map/gg_map.c index b3f01c7..221b915 100644 --- a/gg_map/gg_map.c +++ b/gg_map/gg_map.c @@ -145,7 +145,7 @@ _conn_add(u_int id, u_int src, u_int dst, u_int proto, u_int8_t pktsize) vb = _node_to_vertice(b); e = egraph_edge_find(_egraph, va, vb); if (_loglevel >= 2) - printf("_conn_add: a %d b %d e %x id %d\n", va->id, vb->id, e, id); + printf("_conn_add: a %d b %d e %p id %d\n", va->id, vb->id, e, id); if (!e) { if (a->group && a->group->conn_count == 1) _node_detach_parentgroup(a); @@ -153,7 +153,7 @@ _conn_add(u_int id, u_int src, u_int dst, u_int proto, u_int8_t pktsize) _node_detach_parentgroup(b); e = egraph_edge_add(_egraph, va, vb, conn); if (_loglevel >= 2) - printf("_conn_add: egraph edge added %x\n", e); + printf("_conn_add: egraph edge added %p\n", e); } ggnet_conn_usrdata_set(conn, e); } @@ -178,7 +178,7 @@ _conn_del(int id) { // XXX lets keep the edges, igraph layouting behaves badly when you have // a vertice without edge ... if (_loglevel >= 2) - printf("_conn_del: edge del %x\n", e); // XXX + printf("_conn_del: edge del %p\n", e); // XXX egraph_edge_del(_egraph, e); if (a->group && a->group->conn_count == 0) _node_attach_parentgroup(a); @@ -186,7 +186,7 @@ _conn_del(int id) { _node_attach_parentgroup(b); } else { if (_loglevel >= 2) - printf("_conn_del: not last one, edge %x *not* deleted\n", e); + printf("_conn_del: not last one, edge %p *not* deleted\n", e); } } else { if (_loglevel >= 2) -- cgit v1.2.3-59-g8ed1b