ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] [PATCH] Fix compilation failures on x86_64-unknown-linux-gnu

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Tue, 29 May 2007 12:09:13 -0700
Guy Harris wrote:
Jeff Morriss wrote:

	...

Should the PRI*64 macros (which I just recently started adding--meaning there were some there before, it's just that only recently did /I/ add some) be replaced with G_GINT64_MODIFIER?

Yes

I've done that.

(except for calls that use printf/fprintf/sprintf/snprintf rather than the GLib equivalents, if any; there should be as few of those as possible).

...although for TShark taps, which might print statistics to the standard output, there's no g_printf() routine, so they use printf(), which should still use the PRI*64 macros.

We should also update the documentation.

I've done that as well.

Note that any dissector generators that generate format strings should be updated as well (I've updated idl2wrs's wireshark_gen.py helper script; asn2wrs doesn't generate format strings, as far as I can tell; I don't know what the PIDL generator does).