From: Ethan Jackson Date: Wed, 6 Jun 2012 01:02:30 +0000 (-0700) Subject: dpif-linux: Fix invalid format specifier. X-Git-Tag: sliver-openvswitch-1.8.90-0~48^2~390 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=aecfb4af7e87a78dfec44db1fa82c4463a7f8309;p=sliver-openvswitch.git dpif-linux: Fix invalid format specifier. This fixes the following warning on my system. "format '%d' expects argument of type 'int', but argument 5 has type 'long int'" Signed-off-by: Ethan Jackson --- diff --git a/lib/dpif-linux.c b/lib/dpif-linux.c index b571441f5..62f691744 100644 --- a/lib/dpif-linux.c +++ b/lib/dpif-linux.c @@ -1981,7 +1981,7 @@ report_loss(struct dpif *dpif_, struct dpif_channel *ch) } ds_chomp(&s, ','); - VLOG_ERR("%s: lost packet on channel %d%s", + VLOG_ERR("%s: lost packet on channel %td%s", dpif_name(dpif_), ch - dpif->channels, ds_cstr(&s)); ds_destroy(&s); }