From 7bd9c8399c669738acb7148bf004375adb25b8a9 Mon Sep 17 00:00:00 2001 From: Konstantin Kowalski Date: Fri, 9 Aug 2013 01:49:13 +0000 Subject: [PATCH] Fixed a printf argument. --- testing/DHT_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/DHT_test.c b/testing/DHT_test.c index f1940614..c8feaf4b 100644 --- a/testing/DHT_test.c +++ b/testing/DHT_test.c @@ -56,7 +56,7 @@ void print_clientlist() for(i = 0; i < 4; i++) { printf("ClientID: "); for(j = 0; j < 32; j++) { - printf("%c", close_clientlist[i].client_id[j]); + printf("%hhX", close_clientlist[i].client_id[j]); } p_ip = close_clientlist[i].ip_port; printf("\nIP: %u.%u.%u.%u Port: %u",p_ip.ip.c[0],p_ip.ip.c[1],p_ip.ip.c[2],p_ip.ip.c[3],ntohs(p_ip.port));