From f8cce9f8a5eda2a3c2225a1430702e0a14367a48 Mon Sep 17 00:00:00 2001 From: Chen Wang Date: Wed, 17 Apr 2024 17:11:54 -0400 Subject: [PATCH] Add debug output for pread Signed-off-by: Chen Wang --- client/src/unifyfs-sysio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/src/unifyfs-sysio.c b/client/src/unifyfs-sysio.c index 77158b60..b5c79fb6 100644 --- a/client/src/unifyfs-sysio.c +++ b/client/src/unifyfs-sysio.c @@ -2059,6 +2059,9 @@ ssize_t UNIFYFS_WRAP(pread)(int fd, void* buf, size_t count, off_t offset) return (ssize_t)(-1); } + LOGDBG("pread - fd=%d offset=%zu count=%zu", + fd, (size_t)offset, count); + /* TODO: handle error if sync fails? */ /* sync data for file before reading, if needed */ unifyfs_fid_sync_extents(posix_client, fid);