summaryrefslogtreecommitdiff
path: root/daemon/gvfsjobtruncate.c
diff options
context:
space:
mode:
authorOndrej Holy <oholy@redhat.com>2015-09-11 12:14:27 +0200
committerOndrej Holy <oholy@redhat.com>2015-09-23 10:08:04 +0200
commit766b99b678d547dec69752f5a2df94cb94c54a7e (patch)
tree07aea57977eee899dae73dbc9343840052b3d16b /daemon/gvfsjobtruncate.c
parent6f48955f87592aa18cac6a82465643dbdf95a50b (diff)
downloadgvfs-766b99b678d547dec69752f5a2df94cb94c54a7e.tar.gz
job: Unify send_reply debug messages
Unify send_reply debug messages for all jobs. Always indicate failure and include error message. Indicate some other info (i.e. offset, size) for some jobs (i.e. seek, read, write). https://bugzilla.gnome.org/show_bug.cgi?id=755104
Diffstat (limited to 'daemon/gvfsjobtruncate.c')
-rw-r--r--daemon/gvfsjobtruncate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/daemon/gvfsjobtruncate.c b/daemon/gvfsjobtruncate.c
index bac32483..e7d4148b 100644
--- a/daemon/gvfsjobtruncate.c
+++ b/daemon/gvfsjobtruncate.c
@@ -91,7 +91,8 @@ send_reply (GVfsJob *job)
{
GVfsJobTruncate *op_job = G_VFS_JOB_TRUNCATE (job);
- g_debug ("job_truncate send reply\n");
+ g_debug ("send_reply(%p), failed=%d (%s)\n", job, job->failed,
+ job->failed ? job->error->message : "");
if (job->failed)
g_vfs_channel_send_error (G_VFS_CHANNEL (op_job->channel), job->error);