summaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
authorAndreas Henriksson <andreas@fatal.se>2009-07-19 17:36:14 +0200
committerBenjamin Otte <otte@gnome.org>2009-07-20 14:13:09 +0200
commit66df9e764aed43b23b5c3326ff9ab024b0a49124 (patch)
treef0fb9968a17c0deb54d2dfce9ac03a0837b9d394 /daemon
parent1464c21cd3a55ea6ad2f8893e138995159a22281 (diff)
downloadgvfs-66df9e764aed43b23b5c3326ff9ab024b0a49124.tar.gz
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.
Diffstat (limited to 'daemon')
-rw-r--r--daemon/gvfsjobcopy.c2
-rw-r--r--daemon/gvfsjobmove.c2
-rw-r--r--daemon/gvfsjobpull.c2
-rw-r--r--daemon/gvfsjobpush.c2
4 files changed, 4 insertions, 4 deletions
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;
diff --git a/daemon/gvfsjobmove.c b/daemon/gvfsjobmove.c
index 7baa62eb..899ae13a 100644
--- a/daemon/gvfsjobmove.c
+++ b/daemon/gvfsjobmove.c
@@ -132,7 +132,7 @@ g_vfs_job_move_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;
diff --git a/daemon/gvfsjobpull.c b/daemon/gvfsjobpull.c
index b69d1a7e..6f905eda 100644
--- a/daemon/gvfsjobpull.c
+++ b/daemon/gvfsjobpull.c
@@ -139,7 +139,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;
diff --git a/daemon/gvfsjobpush.c b/daemon/gvfsjobpush.c
index ffb6cdb2..1a02c047 100644
--- a/daemon/gvfsjobpush.c
+++ b/daemon/gvfsjobpush.c
@@ -139,7 +139,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;