<html>
    <head>
      <base href="https://bugzilla.netfilter.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - printf format warnings on 32-bit build (git 20161230) (patch)"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=1107">1107</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>printf format warnings on 32-bit build (git 20161230) (patch)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>iptables
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>CVS (please indicate timestamp)
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>i386
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P5
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>iptables
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>netfilter-buglog@lists.netfilter.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>duncan_roe@acslink.net.au
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=488" name="attach_488" title="Fixes warnings as per bug description">attachment 488</a> <a href="attachment.cgi?id=488&action=edit" title="Fixes warnings as per bug description">[details]</a></span>
Fixes warnings as per bug description

This is the well-known %lu with uint64_t again. It does actually result in bad
output: little-endian systems will show value mod 4G and big-endian will show
value / 4G.
The source already addresses this in 2 ways:
1. use %llu and cast to long long unsigned int
2. Use macro PRIu64 from <inttypes.h>
I offer a patch using method 2: using the macro still gets a warning if the
base type is inappropriate but with a cast there can be no warning</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>