We don't use PRId64, PRIu64, PRIx64, PRIX64, and PRIo64 internally in Wireshark, so don't encourage people to use them. Use G_GINT64_FORMAT + friends instead.

svn path=/trunk/; revision=29636
This commit is contained in:
Kovarththanan Rajaratnam 2009-08-31 18:28:10 +00:00
parent 418699b85d
commit 49930eff58
1 changed files with 0 additions and 5 deletions

View File

@ -178,11 +178,6 @@ Wireshark that take format arguments, use G_GINT64_MODIFIER, for example:
"Sequence Number: %" G_GINT64_MODIFIER "u",
sequence_number);
When using standard C routines, such as printf and scanf, use
PRId64, PRIu64, PRIx64, PRIX64, and PRIo64; for example:
printf("Sequence Number: %" PRIu64 "\n", sequence_number);
When specifying an integral constant that doesn't fit in 32 bits, don't
use "LL" at the end of the constant - not all compilers use "LL" for
that. Instead, put the constant in a call to the "G_GINT64_CONSTANT()"