[Bro-Dev] #319: Changes Xprintf() formats to use PRIxyz, e.g., PRIu64, PRIx32

Bro Tracker bro at tracker.icir.org
Mon Nov 22 14:05:36 PST 2010


#319: Changes Xprintf() formats to use PRIxyz, e.g.,  PRIu64, PRIx32
----------------------+--------------------
 Reporter:  gregor    |      Owner:
     Type:  Problem   |     Status:  new
 Priority:  Normal    |  Milestone:  Bro1.6
Component:  Bro       |    Version:
 Keywords:  inttypes  |
----------------------+--------------------
 {{{
 #!rst

 Change all *X*\ printf(), fmt(), etc. format strings to use ``PRIxyz``
 macros to specify how to print fixed-width integer types like uint64_t.
 These are defined in ``stdint.h``

 C.f.
 http://www.opengroup.org/onlinepubs/000095399/basedefs/inttypes.h.html

 They are a C99 and POSIX standard and using them should get rid of a lot
 of warnings related to format specifiers.

 }}}

-- 
Ticket URL: <http://tracker.icir.org/bro/ticket/319>
Bro Tracker <http://tracker.icir.org/bro>
Bro Issue Tracker




More information about the bro-dev mailing list