summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2005-12-02 23:48:12 +0000
committerThomas Schwinge <tschwinge@gnu.org>2005-12-02 23:48:12 +0000
commita8d7588dafd44d95f10a1a4c6fd057d27f32aeeb (patch)
tree6afa780de92f21368d6e7bbb87b93906797e6edd
parent9f5b63a2ed10405024110a6afc76eba0a4b5422e (diff)
... but too many words are just noise.
-rw-r--r--fuse_i.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/fuse_i.h b/fuse_i.h
index 54ad242c6..dfb380298 100644
--- a/fuse_i.h
+++ b/fuse_i.h
@@ -138,10 +138,12 @@ extern FILE *debug_port;
#define FUNC_RETURN_(ret, fmt) \
{ \
int retval = (ret); \
- DEBUG("tracing", "leaving %s (" __FILE__ ":%d) ret=%d (%s) ", \
- debug_func_name, __LINE__, retval, strerror(retval)); \
- if(debug_port) \
- { \
+ DEBUG("tracing", "leaving %s (" __FILE__ ":%d) ret=%d ", \
+ debug_func_name, __LINE__, retval); \
+ if(debug_port) \
+ { \
+ if(retval) \
+ fprintf(debug_port, "(%s) ", strerror(retval)); \
fmt; \
fprintf(debug_port, "\n"); \
} \