Current controller fails to build on i386

Bug #1457444 reported by Martin Gerhard Loschwitz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenContrail
New
Undecided
Unassigned

Bug Description

While trying to have Launchpad automatically build packages for the Controller on i386, I realized that i386 builds will currently fail due to improper usage of format specifiers.

This happens in two occasions:

controller/src/bgp/community.cc
  snprintf(start, sizeof(start), "Communities: %lu [", communities.size());

controller/src/bgp/bgp_origin_vn_path.cc
  snprintf(repr, sizeof(repr), "OriginVnPath <code: %d, flags: %02x> : %lu",

The problem is %lu here, which needs to be replaced by "%z"u to make the build work properly on amd64 and i386.

Revision history for this message
Martin Gerhard Loschwitz (martin-loschwitz) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.