[gvfs] Make debug output for progress callbacks really 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 really work with large files
- Date: Mon, 20 Jul 2009 15:17:48 +0000 (UTC)
commit 4255792153906238a67e4a4d748ba71b52d663be
Author: Benjamin Otte <otte gnome org>
Date: Mon Jul 20 17:13:50 2009 +0200
Make debug output for progress callbacks really work with large files
Fixes omission of % in commit 66df9e764aed43b23b5c3326ff9ab024b0a49124
daemon/gvfsjobcopy.c | 4 ++--
daemon/gvfsjobmove.c | 4 ++--
daemon/gvfsjobpull.c | 2 +-
daemon/gvfsjobpush.c | 2 +-
4 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/daemon/gvfsjobcopy.c b/daemon/gvfsjobcopy.c
index 60636ee..59bb693 100644
--- a/daemon/gvfsjobcopy.c
+++ b/daemon/gvfsjobcopy.c
@@ -133,11 +133,11 @@ progress_callback (goffset current_num_bytes,
dbus_uint64_t current_dbus, total_dbus;
DBusMessage *message;
- g_debug ("progress_callback " G_GOFFSET_FORMAT "/" G_GOFFSET_FORMAT "\n", current_num_bytes, 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;
-
+
message =
dbus_message_new_method_call (dbus_message_get_sender (dbus_job->message),
op_job->callback_obj_path,
diff --git a/daemon/gvfsjobmove.c b/daemon/gvfsjobmove.c
index 899ae13..f90deee 100644
--- a/daemon/gvfsjobmove.c
+++ b/daemon/gvfsjobmove.c
@@ -132,11 +132,11 @@ g_vfs_job_move_progress_callback (goffset current_num_bytes,
dbus_uint64_t current_dbus, total_dbus;
DBusMessage *message;
- g_debug ("progress_callback " G_GOFFSET_FORMAT "/" G_GOFFSET_FORMAT "\n", current_num_bytes, 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;
-
+
message =
dbus_message_new_method_call (dbus_message_get_sender (dbus_job->message),
op_job->callback_obj_path,
diff --git a/daemon/gvfsjobpull.c b/daemon/gvfsjobpull.c
index 6f905ed..175a3e5 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 " G_GOFFSET_FORMAT "/" G_GOFFSET_FORMAT "\n", current_num_bytes, 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 1a02c04..62c1638 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 " G_GOFFSET_FORMAT "/" G_GOFFSET_FORMAT "\n", current_num_bytes, 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]