diff options
author | Uros Majstorovic <majstor@majstor.org> | 2024-05-14 23:09:36 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2024-05-14 23:09:36 +0200 |
commit | 6d50a8bff1938a8d7f398275a886aca37d6f6a7c (patch) | |
tree | 9a292e5c35b509bd0f4eda52d995ab37edf90590 /ecp/test/server.c | |
parent | 5769607dabd338973110d0ecd51b3d61f5f305ff (diff) |
tests improved logging; add dir client test
Diffstat (limited to 'ecp/test/server.c')
-rw-r--r-- | ecp/test/server.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ecp/test/server.c b/ecp/test/server.c index 0af41c6..9943adb 100644 --- a/ecp/test/server.c +++ b/ecp/test/server.c @@ -41,26 +41,26 @@ int main(int argc, char *argv[]) { if (argc != 3) usage(argv[0]); rv = ecp_init(&ctx); - printf("ecp_init RV:%d\n", rv); + LOG("ecp_init", rv); ecp_conn_handler_init(&handler, NULL, NULL, handle_msg, NULL); ecp_ctx_set_handler(&ctx, CTYPE_TEST, &handler); 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_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); while (1) sleep(1); } |