diff options
author | Laurent Ghigonis <laurent@p1sec.com> | 2013-07-06 02:27:04 +0200 |
---|---|---|
committer | Laurent Ghigonis <laurent@p1sec.com> | 2013-07-06 02:27:04 +0200 |
commit | 54cfbcfae67b185b0d95dae95796b5e41ef36715 (patch) | |
tree | 1ca04c217c5e1ba2af704e16ce250391ad3cce29 /gg_map/gg_map.c | |
parent | libglouglou: traceroute more explicit on intf_get_dst() failure (diff) | |
download | glouglou-54cfbcfae67b185b0d95dae95796b5e41ef36715.tar.xz glouglou-54cfbcfae67b185b0d95dae95796b5e41ef36715.zip |
gg_map: printf use %p for pointers
Diffstat (limited to 'gg_map/gg_map.c')
-rw-r--r-- | gg_map/gg_map.c | 8 |
1 files changed, 4 insertions, 4 deletions
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) |