From 7d3e6b74812527f69aabf9c1bbb0eb37051f94da Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Sat, 9 Sep 2017 15:49:35 +0000 Subject: video test prints to stderr --- code/test/vid/server.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'code/test/vid/server.c') diff --git a/code/test/vid/server.c b/code/test/vid/server.c index 08653f1..48f6c51 100644 --- a/code/test/vid/server.c +++ b/code/test/vid/server.c @@ -23,6 +23,7 @@ static ssize_t handle_open(ECPConnection *c, ecp_seq_t sq, unsigned char t, unsi conn = c; is_open = 1; + fprintf(stderr, "IS OPEN!\n"); return rv; } @@ -39,7 +40,7 @@ int init_server(char *address, char *key) { int rv; rv = ecp_init(&ctx_s); - printf("ecp_init RV:%d\n", rv); + fprintf(stderr, "ecp_init RV:%d\n", rv); if (!rv) rv = ecp_conn_handler_init(&handler_s); if (!rv) { @@ -48,16 +49,16 @@ int init_server(char *address, char *key) { } if (!rv) rv = ecp_util_key_load(&ctx_s, &key_perma_s, key); - printf("ecp_util_key_load RV:%d\n", rv); + fprintf(stderr, "ecp_util_key_load RV:%d\n", rv); if (!rv) rv = ecp_sock_create(&sock_s, &ctx_s, &key_perma_s); - printf("ecp_sock_create RV:%d\n", rv); + fprintf(stderr, "ecp_sock_create RV:%d\n", rv); if (!rv) rv = ecp_sock_open(&sock_s, address); - printf("ecp_sock_open RV:%d\n", rv); + fprintf(stderr, "ecp_sock_open RV:%d\n", rv); if (!rv) rv = ecp_start_receiver(&sock_s); - printf("ecp_start_receiver RV:%d\n", rv); + fprintf(stderr, "ecp_start_receiver RV:%d\n", rv); return rv; } -- cgit v1.2.3