Use %x instead of %lx where appropriate.
[tinc] / src / connection.c
index ce4c753..2372890 100644 (file)
@@ -98,7 +98,7 @@ int dump_connections(struct evbuffer *out) {
        for(node = connection_tree->head; node; node = node->next) {
                c = node->data;
                if(evbuffer_add_printf(out,
-                                  " %s at %s options %lx socket %d status %04x\n",
+                                  " %s at %s options %x socket %d status %04x\n",
                                   c->name, c->hostname, c->options, c->socket,
                                   bitfield_to_int(&c->status, sizeof c->status)) == -1)
                        return errno;