From: Ethan Jackson Date: Thu, 19 May 2011 01:07:57 +0000 (-0700) Subject: ofproto: Fix compiler warning. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35aa7a213757ffca31ea345a1154dadaa75298f2;p=openvswitch ofproto: Fix compiler warning. ofproto/ofproto.c:1681:9: error: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' --- diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index beab99ca..be0fccc7 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -1678,7 +1678,7 @@ handle_table_stats_request(struct ofconn *ofconn, ots = ofpbuf_put_zeros(msg, sizeof *ots * p->n_tables); for (i = 0; i < p->n_tables; i++) { ots[i].table_id = i; - sprintf(ots[i].name, "table%d", i); + sprintf(ots[i].name, "table%zu", i); ots[i].wildcards = htonl(OFPFW_ALL); ots[i].max_entries = htonl(1000000); /* An arbitrary big number. */ ots[i].active_count = htonl(classifier_count(&p->tables[i]));