summaryrefslogtreecommitdiff
path: root/ecp/test/vcs.c
diff options
context:
space:
mode:
Diffstat (limited to 'ecp/test/vcs.c')
-rw-r--r--ecp/test/vcs.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/ecp/test/vcs.c b/ecp/test/vcs.c
index 4f4564b..1260f2b 100644
--- a/ecp/test/vcs.c
+++ b/ecp/test/vcs.c
@@ -52,42 +52,42 @@ int main(int argc, char *argv[]) {
if ((argc < 3) || (argc > 5)) usage(argv[0]);
rv = ecp_init(&ctx, &vconn_handler, &vlink_handler);
- printf("ecp_init RV:%d\n", rv);
+ LOG("ecp_init", rv);
vlink_handler.handle_open = vlink_handle_open;
rv = ecp_util_load_key(argv[2], &key_perma.public, &key_perma.private);
- printf("ecp_util_load_key RV:%d\n", rv);
+ LOG("ecp_util_load_key", rv);
key_perma.valid = 1;
rv = ecp_sock_create(&sock, &ctx, &key_perma);
- printf("ecp_sock_create RV:%d\n", rv);
+ LOG("ecp_sock_create", rv);
rv = ecp_vconn_sock_create(&sock);
- printf("ecp_vconn_htable_init RV:%d\n", rv);
+ LOG("ecp_vconn_htable_init", rv);
rv = ecp_addr_init(&addr, argv[1]);
- printf("ecp_addr_init RV:%d\n", rv);
+ LOG("ecp_addr_init", rv);
rv = ecp_sock_open(&sock, &addr);
- printf("ecp_sock_open RV:%d\n", rv);
+ LOG("ecp_sock_open", rv);
rv = ecp_start_receiver(&sock);
- printf("ecp_start_receiver RV:%d\n", rv);
+ LOG("ecp_start_receiver", rv);
if (argc == 5) {
ECPNode node;
ecp_ecdh_public_t node_pub;
rv = ecp_util_load_key(argv[4], &node_pub, NULL);
- printf("ecp_util_load_key RV:%d\n", rv);
+ LOG("ecp_util_load_key", rv);
ecp_node_init(&node, &node_pub, NULL);
rv = ecp_node_set_addr(&node, argv[3]);
- printf("ecp_node_set_addr RV:%d\n", rv);
+ LOG("ecp_node_set_addr", rv);
ecp_vlink_init(&conn, &sock);
rv = ecp_conn_open(&conn, &node);
- printf("ecp_conn_open RV:%d\n", rv);
+ LOG("ecp_conn_open", rv);
} else {
memset(&conn, 0, sizeof(conn));
}