diff options
author | irungentoo <irungentoo@gmail.com> | 2013-08-08 19:42:29 -0700 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-08-08 19:42:29 -0700 |
commit | 29264b58fc58c5c22f301b9c2ed1a03eab78b310 (patch) | |
tree | 414ba2d69e01a3d502eee1e56a3c66bd7c40afe6 /testing | |
parent | ff25b59fa6c714a70b1744dca2c6a8951db49c77 (diff) | |
parent | 7bd9c8399c669738acb7148bf004375adb25b8a9 (diff) |
Merge pull request #404 from KostyaKow/small_fixes
Fixed a printf argument.
Diffstat (limited to 'testing')
-rw-r--r-- | testing/DHT_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
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() | |||
56 | for(i = 0; i < 4; i++) { | 56 | for(i = 0; i < 4; i++) { |
57 | printf("ClientID: "); | 57 | printf("ClientID: "); |
58 | for(j = 0; j < 32; j++) { | 58 | for(j = 0; j < 32; j++) { |
59 | printf("%c", close_clientlist[i].client_id[j]); | 59 | printf("%hhX", close_clientlist[i].client_id[j]); |
60 | } | 60 | } |
61 | p_ip = close_clientlist[i].ip_port; | 61 | p_ip = close_clientlist[i].ip_port; |
62 | 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)); | 62 | 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)); |