From 66df9e764aed43b23b5c3326ff9ab024b0a49124 Mon Sep 17 00:00:00 2001 From: Andreas Henriksson Date: Sun, 19 Jul 2009 17:36:14 +0200 Subject: Make debug output for progress callbacks work with large files Without this patch, the debug output would easily overflow, as it was cast to int. --- daemon/gvfsjobcopy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'daemon/gvfsjobcopy.c') diff --git a/daemon/gvfsjobcopy.c b/daemon/gvfsjobcopy.c index 4463aa25..60636eee 100644 --- a/daemon/gvfsjobcopy.c +++ b/daemon/gvfsjobcopy.c @@ -133,7 +133,7 @@ progress_callback (goffset current_num_bytes, dbus_uint64_t current_dbus, total_dbus; DBusMessage *message; - g_debug ("progress_callback %d/%d\n", (int)current_num_bytes, (int)total_num_bytes); + g_debug ("progress_callback " G_GOFFSET_FORMAT "/" G_GOFFSET_FORMAT "\n", current_num_bytes, total_num_bytes); if (op_job->callback_obj_path == NULL) return; -- cgit v1.2.1