[gvfs] Make debug output for progress callbacks work with large files
- From: Benjamin Otte <otte src gnome org>
- To: svn-commits-list gnome org
- Subject: [gvfs] Make debug output for progress callbacks work with large files
- Date: Mon, 20 Jul 2009 12:13:25 +0000 (UTC)
commit 66df9e764aed43b23b5c3326ff9ab024b0a49124
Author: Andreas Henriksson <andreas fatal se>
Date: Sun Jul 19 17:36:14 2009 +0200
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 +-
daemon/gvfsjobmove.c | 2 +-
daemon/gvfsjobpull.c | 2 +-
daemon/gvfsjobpush.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/daemon/gvfsjobcopy.c b/daemon/gvfsjobcopy.c
index 4463aa2..60636ee 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 7baa62e..899ae13 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 b69d1a7..6f905ed 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 ffb6cdb..1a02c04 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]