From 5a43799a17572c9a9962dc76fd681a14bb7689de Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Tue, 29 May 2007 18:52:42 +0000 Subject: Use G_GINT64_MODIFIER, rather than the PRI[douxX]64 macros, for GLib routines and routines using those routines. GLib might use different modifiers for 64-bit quantities than the platform's C library does. svn path=/trunk/; revision=21990 --- file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'file.c') diff --git a/file.c b/file.c index ca118abd17..46a37c52be 100644 --- a/file.c +++ b/file.c @@ -473,7 +473,7 @@ cf_read(capture_file *cf) #endif g_snprintf(status_str, sizeof(status_str), - "%" PRId64 "KB of %" PRId64 "KB", + "%" G_GINT64_MODIFIER "dKB of %" G_GINT64_MODIFIER "dKB", file_pos / 1024, size / 1024); update_progress_dlg(progbar, progbar_val, status_str); } @@ -1236,7 +1236,7 @@ cf_merge_files(char **out_filenamep, int in_file_count, } if (progbar != NULL) { g_snprintf(status_str, sizeof(status_str), - "%" PRId64 "KB of %" PRId64 "KB", + "%" G_GINT64_MODIFIER "dKB of %" G_GINT64_MODIFIER "dKB", file_pos / 1024, f_len / 1024); update_progress_dlg(progbar, progbar_val, status_str); } -- cgit v1.2.1