aboutsummaryrefslogtreecommitdiff
path: root/utilities
diff options
context:
space:
mode:
authorBen Pfaff <blp@nicira.com>2011-10-05 11:18:13 -0700
committerBen Pfaff <blp@nicira.com>2011-10-05 11:18:13 -0700
commita8d9304d121f56af0e6f02677342933579be3277 (patch)
tree0354c3bbcf41da9c5dc2c2945b65c3b92ef28350 /utilities
parent5621afff91b24a9b79b9eab0965dcd888ef810e8 (diff)
dpif: Avoid use of "struct ovs_dp_stats" in platform-independent modules.
Over time we wish to reduce the number of datapath-protocol.h definitions used directly outside of Linux-specific code. This commit removes use of "struct ovs_dp_stats" from platform-independent code. Bug #7559.
Diffstat (limited to 'utilities')
-rw-r--r--utilities/ovs-dpctl.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/utilities/ovs-dpctl.c b/utilities/ovs-dpctl.c
index e724e745..4d0d3c2d 100644
--- a/utilities/ovs-dpctl.c
+++ b/utilities/ovs-dpctl.c
@@ -366,17 +366,17 @@ show_dpif(struct dpif *dpif)
{
struct dpif_port_dump dump;
struct dpif_port dpif_port;
- struct ovs_dp_stats stats;
+ struct dpif_dp_stats stats;
struct netdev *netdev;
printf("%s:\n", dpif_name(dpif));
if (!dpif_get_dp_stats(dpif, &stats)) {
- printf("\tlookups: frags:%llu, hit:%llu, missed:%llu, lost:%llu\n",
- (unsigned long long int) stats.n_frags,
- (unsigned long long int) stats.n_hit,
- (unsigned long long int) stats.n_missed,
- (unsigned long long int) stats.n_lost);
- printf("\tflows: %llu\n", (unsigned long long int)stats.n_flows);
+ printf("\tlookups: frags:%"PRIu64, stats.n_frags);
+ printf(" hit:%"PRIu64, stats.n_hit);
+ printf(" missed:%"PRIu64, stats.n_missed);
+ printf(" lost:%"PRIu64"\n", stats.n_lost);
+
+ printf("\tflows: %"PRIu64"\n", stats.n_flows);
}
DPIF_PORT_FOR_EACH (&dpif_port, &dump, dpif) {
printf("\tport %u: %s", dpif_port.port_no, dpif_port.name);