diff options
Diffstat (limited to 'testing/DHT_test.c')
-rw-r--r-- | testing/DHT_test.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/testing/DHT_test.c b/testing/DHT_test.c index fae4e001..1c5286e7 100644 --- a/testing/DHT_test.c +++ b/testing/DHT_test.c | |||
@@ -9,6 +9,8 @@ | |||
9 | 9 | ||
10 | #include "../core/DHT.h" | 10 | #include "../core/DHT.h" |
11 | 11 | ||
12 | #include <string.h> | ||
13 | |||
12 | //Sleep function (x = milliseconds) | 14 | //Sleep function (x = milliseconds) |
13 | #ifdef WIN32 | 15 | #ifdef WIN32 |
14 | 16 | ||
@@ -100,7 +102,11 @@ int main(int argc, char *argv[]) | |||
100 | printf("UNHANDLED PACKET RECEIVED\nLENGTH:%u\nCONTENTS:\n", length); | 102 | printf("UNHANDLED PACKET RECEIVED\nLENGTH:%u\nCONTENTS:\n", length); |
101 | printf("--------------------BEGIN-----------------------------\n"); | 103 | printf("--------------------BEGIN-----------------------------\n"); |
102 | for(i = 0; i < length; i++) | 104 | for(i = 0; i < length; i++) |
103 | printf("%c",data[i]); | 105 | { |
106 | if(data[i] < 16) | ||
107 | printf("0"); | ||
108 | printf("%X",data[i]); | ||
109 | } | ||
104 | printf("\n--------------------END-----------------------------\n\n\n"); | 110 | printf("\n--------------------END-----------------------------\n\n\n"); |
105 | } | 111 | } |
106 | else | 112 | else |