diff options
Diffstat (limited to 'testing/DHT_test.c')
-rw-r--r-- | testing/DHT_test.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/testing/DHT_test.c b/testing/DHT_test.c index c7db4092..496c855c 100644 --- a/testing/DHT_test.c +++ b/testing/DHT_test.c | |||
@@ -54,22 +54,22 @@ static void print_client_id(const uint8_t *public_key) | |||
54 | uint32_t j; | 54 | uint32_t j; |
55 | 55 | ||
56 | for (j = 0; j < CRYPTO_PUBLIC_KEY_SIZE; j++) { | 56 | for (j = 0; j < CRYPTO_PUBLIC_KEY_SIZE; j++) { |
57 | printf("%02hhX", public_key[j]); | 57 | printf("%02X", public_key[j]); |
58 | } | 58 | } |
59 | } | 59 | } |
60 | 60 | ||
61 | static void print_hardening(const Hardening *h) | 61 | static void print_hardening(const Hardening *h) |
62 | { | 62 | { |
63 | printf("Hardening:\n"); | 63 | printf("Hardening:\n"); |
64 | printf("routes_requests_ok: %hhu\n", h->routes_requests_ok); | 64 | printf("routes_requests_ok: %u\n", h->routes_requests_ok); |
65 | printf("routes_requests_timestamp: %llu\n", (long long unsigned int)h->routes_requests_timestamp); | 65 | printf("routes_requests_timestamp: %llu\n", (long long unsigned int)h->routes_requests_timestamp); |
66 | printf("routes_requests_pingedid: "); | 66 | printf("routes_requests_pingedid: "); |
67 | print_client_id(h->routes_requests_pingedid); | 67 | print_client_id(h->routes_requests_pingedid); |
68 | printf("\nsend_nodes_ok: %hhu\n", h->send_nodes_ok); | 68 | printf("\nsend_nodes_ok: %u\n", h->send_nodes_ok); |
69 | printf("send_nodes_timestamp: %llu\n", (long long unsigned int)h->send_nodes_timestamp); | 69 | printf("send_nodes_timestamp: %llu\n", (long long unsigned int)h->send_nodes_timestamp); |
70 | printf("send_nodes_pingedid: "); | 70 | printf("send_nodes_pingedid: "); |
71 | print_client_id(h->send_nodes_pingedid); | 71 | print_client_id(h->send_nodes_pingedid); |
72 | printf("\ntesting_requests: %hhu\n", h->testing_requests); | 72 | printf("\ntesting_requests: %u\n", h->testing_requests); |
73 | printf("testing_timestamp: %llu\n", (long long unsigned int)h->testing_timestamp); | 73 | printf("testing_timestamp: %llu\n", (long long unsigned int)h->testing_timestamp); |
74 | printf("testing_pingedid: "); | 74 | printf("testing_pingedid: "); |
75 | print_client_id(h->testing_pingedid); | 75 | print_client_id(h->testing_pingedid); |
@@ -162,7 +162,7 @@ static void printpacket(uint8_t *data, uint32_t length, IP_Port ip_port) | |||
162 | printf("0"); | 162 | printf("0"); |
163 | } | 163 | } |
164 | 164 | ||
165 | printf("%hhX", data[i]); | 165 | printf("%X", data[i]); |
166 | } | 166 | } |
167 | 167 | ||
168 | printf("\n--------------------END-----------------------------\n\n\n"); | 168 | printf("\n--------------------END-----------------------------\n\n\n"); |
@@ -201,7 +201,7 @@ int main(int argc, char *argv[]) | |||
201 | printf("0"); | 201 | printf("0"); |
202 | } | 202 | } |
203 | 203 | ||
204 | printf("%hhX", self_public_key[i]); | 204 | printf("%X", self_public_key[i]); |
205 | } | 205 | } |
206 | 206 | ||
207 | char temp_id[128]; | 207 | char temp_id[128]; |