[ovs-dev] [PATCH] ofproto-dpif: Fix incorrect printf format specifiers.

Ben Pfaff blp at nicira.com
Mon Jun 10 18:26:32 UTC 2013


Applied, thanks.

On Mon, Jun 10, 2013 at 11:25:43AM -0700, Justin Pettit wrote:
> Acked-by: Justin Pettit <jpettit at nicira.com>
> 
> 
> On Jun 10, 2013, at 11:20 AM, Ben Pfaff <blp at nicira.com> wrote:
> 
> >    cc1: warnings being treated as errors
> >    ../ofproto/ofproto-dpif.c: In function ‘dpif_show_backer’:
> >    ../ofproto/ofproto-dpif.c:8305: error: format ‘%llu’ expects type ‘long
> >    long unsigned int’, but argument 4 has type ‘size_t’
> >    ../ofproto/ofproto-dpif.c:8305: error: format ‘%llu’ expects type ‘long
> >    long unsigned int’, but argument 5 has type ‘size_t’
> > 
> > Signed-off-by: Ben Pfaff <blp at nicira.com>
> > ---
> > ofproto/ofproto-dpif.c |    3 ++-
> > 1 files changed, 2 insertions(+), 1 deletions(-)
> > 
> > diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c
> > index d5cfc16..eb2c7e0 100644
> > --- a/ofproto/ofproto-dpif.c
> > +++ b/ofproto/ofproto-dpif.c
> > @@ -8287,11 +8287,12 @@ show_dp_rates(struct ds *ds, const char *heading,
> > static void
> > dpif_show_backer(const struct dpif_backer *backer, struct ds *ds)
> > {
> > -    size_t n_hit, n_missed, i;
> >     const struct shash_node **ofprotos;
> >     struct ofproto_dpif *ofproto;
> >     struct shash ofproto_shash;
> > +    uint64_t n_hit, n_missed;
> >     long long int minutes;
> > +    size_t i;
> > 
> >     n_hit = n_missed = 0;
> >     HMAP_FOR_EACH (ofproto, all_ofproto_dpifs_node, &all_ofproto_dpifs) {
> > -- 
> > 1.7.2.5
> > 
> > _______________________________________________
> > dev mailing list
> > dev at openvswitch.org
> > http://openvswitch.org/mailman/listinfo/dev
> 



More information about the dev mailing list