diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2017-05-31 12:35:16 -0700 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2017-05-31 12:35:16 -0700 |
commit | e6dd8ceb9eb066dc9a05fa6de32cca51eef76977 (patch) | |
tree | de26d20aca05980ee2efce62f47ec76e12d56066 /example | |
parent | 5e20b4da8ec861573fdf50205221542604be9bbc (diff) |
Revert "example/passthrough.c: add debugging code for issue #157."
This reverts commit 179fa13b40387645e722089873079488f9dbe3d8.
Diffstat (limited to 'example')
-rw-r--r-- | example/passthrough.c | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/example/passthrough.c b/example/passthrough.c index e7dbb52..0c635ca 100644 --- a/example/passthrough.c +++ b/example/passthrough.c @@ -74,16 +74,9 @@ static int xmp_getattr(const char *path, struct stat *stbuf, int res; res = lstat(path, stbuf); - if (res == -1) { - /* Temporary debugging aid for issue #157 */ - res = errno; - printf("xmp_getattr(%s) --> %s\n", path, - strerror(res)); - return -res; - } + if (res == -1) + return -errno; - printf("xmp_getattr(%s) --> ino %d, nlink %d\n", path, - (int) stbuf->st_ino, (int) stbuf->st_nlink); return 0; } |