Use G_GINT64_MODIFIER rather than PRI[duox]64 to print gint64's and
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 6 Dec 2007 08:33:46 +0000 (08:33 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 6 Dec 2007 08:33:46 +0000 (08:33 +0000)
guint64's.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23782 f5534014-38df-0310-8fa8-9805f1628bb7

capinfos.c

index 232924297a094e21ede358aa860e6a0dd70bb1c4..321a19172c4c84796b9404921bfc00b51e352bfe 100644 (file)
@@ -110,8 +110,8 @@ print_stats(capture_info *cf_info)
   if (cap_file_type) printf("File type: %s\n", file_type_string);
   if (cap_file_encap) printf("File encapsulation: %s\n", file_encap_string);
   if (cap_packet_count) printf("Number of packets: %u \n", cf_info->packet_count);
-  if (cap_file_size) printf("File size: %" PRId64 " bytes\n", cf_info->filesize);
-  if (cap_data_size) printf("Data size: %" PRIu64 " bytes\n", cf_info->packet_bytes);
+  if (cap_file_size) printf("File size: %" G_GINT64_MODIFIER "d bytes\n", cf_info->filesize);
+  if (cap_data_size) printf("Data size: %" G_GINT64_MODIFIER "u bytes\n", cf_info->packet_bytes);
   if (cap_duration) printf("Capture duration: %f seconds\n", cf_info->duration);
   if (cap_start_time) printf("Start time: %s", (cf_info->packet_count>0) ? ctime (&start_time_t) : "n/a\n");
   if (cap_end_time) printf("End time: %s",     (cf_info->packet_count>0) ? ctime (&stop_time_t)  : "n/a\n");