From 35aa7a213757ffca31ea345a1154dadaa75298f2 Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Wed, 18 May 2011 18:07:57 -0700 Subject: [PATCH] ofproto: Fix compiler warning. ofproto/ofproto.c:1681:9: error: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' --- ofproto/ofproto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])); -- 2.30.2