Lines 1-43
Link Here
|
1 |
--- dnsperf.c.orig 2015-12-16 00:46:49 UTC |
|
|
2 |
+++ dnsperf.c |
3 |
@@ -52,8 +52,10 @@ |
4 |
|
5 |
#define ISC_BUFFER_USEINLINE |
6 |
|
7 |
+#include <isc/boolean.h> |
8 |
#include <isc/buffer.h> |
9 |
#include <isc/file.h> |
10 |
+#include <isc/int.h> |
11 |
#include <isc/list.h> |
12 |
#include <isc/mem.h> |
13 |
#include <isc/netaddr.h> |
14 |
@@ -280,16 +282,16 @@ print_statistics(const config_t *config, const times_t |
15 |
|
16 |
printf("Statistics:\n\n"); |
17 |
|
18 |
- printf(" %s sent: %" ISC_PRINT_QUADFORMAT "u\n", |
19 |
+ printf(" %s sent: %" PRIu64 "\n", |
20 |
units, stats->num_sent); |
21 |
- printf(" %s completed: %" ISC_PRINT_QUADFORMAT "u (%.2lf%%)\n", |
22 |
+ printf(" %s completed: %" PRIu64 " (%.2lf%%)\n", |
23 |
units, stats->num_completed, |
24 |
SAFE_DIV(100.0 * stats->num_completed, stats->num_sent)); |
25 |
- printf(" %s lost: %" ISC_PRINT_QUADFORMAT "u (%.2lf%%)\n", |
26 |
+ printf(" %s lost: %" PRIu64 " (%.2lf%%)\n", |
27 |
units, stats->num_timedout, |
28 |
SAFE_DIV(100.0 * stats->num_timedout, stats->num_sent)); |
29 |
if (stats->num_interrupted > 0) |
30 |
- printf(" %s interrupted: %" ISC_PRINT_QUADFORMAT "u " |
31 |
+ printf(" %s interrupted: %" PRIu64 " " |
32 |
"(%.2lf%%)\n", |
33 |
units, stats->num_interrupted, |
34 |
SAFE_DIV(100.0 * stats->num_interrupted, |
35 |
@@ -305,7 +307,7 @@ print_statistics(const config_t *config, const times_t |
36 |
first_rcode = ISC_FALSE; |
37 |
else |
38 |
printf(", "); |
39 |
- printf("%s %" ISC_PRINT_QUADFORMAT "u (%.2lf%%)", |
40 |
+ printf("%s %" PRIu64 " (%.2lf%%)", |
41 |
perf_dns_rcode_strings[i], stats->rcodecounts[i], |
42 |
(stats->rcodecounts[i] * 100.0) / stats->num_completed); |
43 |
} |