X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fnode.c;h=75f01e30b9a8c2f67ba94d3ad65c80b44eb0ce48;hb=c4afc481541bff4db7f57c81796b7a5f61cdb1b5;hp=2ef28b59ba525a53681de93ba6f1ca6cd2ed37f8;hpb=37ccb325af5c7865eb16716780121a8a6dce8abd;p=meshlink diff --git a/src/node.c b/src/node.c index 2ef28b59..75f01e30 100644 --- a/src/node.c +++ b/src/node.c @@ -160,7 +160,7 @@ int dump_nodes(struct evbuffer *out) { for(node = node_tree->head; node; node = node->next) { n = node->data; - if(evbuffer_add_printf(out, " %s at %s cipher %d digest %d maclength %d compression %d options %lx status %04x nexthop %s via %s distance %d pmtu %d (min %d max %d)\n", + if(evbuffer_add_printf(out, " %s at %s cipher %d digest %d maclength %d compression %d options %x status %04x nexthop %s via %s distance %d pmtu %d (min %d max %d)\n", n->name, n->hostname, cipher_get_nid(&n->outcipher), digest_get_nid(&n->outdigest), digest_length(&n->outdigest), n->outcompression, n->options, bitfield_to_int(&n->status, sizeof n->status), n->nexthop ? n->nexthop->name : "-",