Use G_GINT64_MODIFIER to print gint64's and guint64's.
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 5 Dec 2007 10:34:01 +0000 (10:34 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 5 Dec 2007 10:34:01 +0000 (10:34 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23767 f5534014-38df-0310-8fa8-9805f1628bb7

tap-afpstat.c
tap-dcerpcstat.c
tap-iousers.c

index 704b1716ab7eaeb63f3c684c5f410a8cfb5082b5..43bffbc5b9e3e6f6b028ea74293ef78ecb01f158 100644 (file)
@@ -100,7 +100,7 @@ afpstat_draw(void *pss)
                        td=0;
                }
 
-               printf("%-25s %6d %3d.%05d %3d.%05d %3" PRIu64 ".%05" PRIu64 "\n",
+               printf("%-25s %6d %3d.%05d %3d.%05d %3" G_GINT64_MODIFIER "u.%05" G_GINT64_MODIFIER "u\n",
                        val_to_str(i, CommandCode_vals, "Unknown (%u)"),
                        ss->proc[i].num,
                        (int)ss->proc[i].min.secs,ss->proc[i].min.nsecs/10000,
index 3fa638ea9ed1aa3fea7ca6d0399522e6defc62b7..1c4342975e9a02656472f7b7b8b47768deee312b 100644 (file)
@@ -163,7 +163,7 @@ dcerpcstat_draw(void *prs)
                        td=0;
                }
 
-               printf("%-25s %6d %3d.%05d %3d.%05d %3" PRIu64 ".%05" PRIu64 "\n",
+               printf("%-25s %6d %3d.%05d %3d.%05d %3" G_GINT64_MODIFIER "u.%05" G_GINT64_MODIFIER "u\n",
                        rs->procedures[i].proc,
                        rs->procedures[i].num,
                        (int)rs->procedures[i].min.secs,rs->procedures[i].min.nsecs/10000,
index d302c418243566a0f4e4dbba81234c1c3356c88d..ced4eb814ebcb1724e0ac31f2cf73f2de8bca12a 100644 (file)
@@ -567,7 +567,7 @@ iousers_draw(void *arg)
                        tot_frames=iui->frames1+iui->frames2;
 
                        if(tot_frames==last_frames){
-                               printf("%-20s <-> %-20s  %6d %9" PRId64 "  %6d %9" PRId64 "  %6d %9" PRId64 "\n",
+                               printf("%-20s <-> %-20s  %6d %9" G_GINT64_MODIFIER "d  %6d %9" G_GINT64_MODIFIER "d  %6d %9" G_GINT64_MODIFIER "d\n",
                                        iui->name1, iui->name2,
                                        iui->frames1, iui->bytes1,
                                        iui->frames2, iui->bytes2,