aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Rizwan <omar.rizwan@gmail.com>2021-01-12 00:17:34 -0800
committerOmar Rizwan <omar.rizwan@gmail.com>2021-01-12 00:17:34 -0800
commit6d4b8ef5d17ac2c8068bcdf623df8923ca5b493d (patch)
treee31f70ed1eb0e45959563503226e80a990f34903
parent9e1a145d23c313f8aa3b50986c331562542e8ba7 (diff)
fs: fix for off_t on 32-bit arch
(it's actually 64-bit bc of -D_FILE_OFFSET_BITS=64 at build time)
-rw-r--r--fs/tabfs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/tabfs.c b/fs/tabfs.c
index 1e22637..c1f3251 100644
--- a/fs/tabfs.c
+++ b/fs/tabfs.c
@@ -275,7 +275,7 @@ static int tabfs_read(const char *path,
char *rdata;
size_t rsize;
exchange_json(&rdata, &rsize,
- "op: %Q, path: %Q, size: %d, offset: %d, fh: %llu, flags: %d",
+ "op: %Q, path: %Q, size: %d, offset: %lld, fh: %llu, flags: %d",
"read", path, size, offset, fi->fh, fi->flags);
char *scan_buf; int scan_len;
@@ -298,7 +298,7 @@ static int tabfs_write(const char *path,
char *rdata;
size_t rsize;
exchange_json(&rdata, &rsize,
- "op: %Q, path: %Q, buf: %V, offset: %d, fh: %llu, flags: %d",
+ "op: %Q, path: %Q, buf: %V, offset: %lld, fh: %llu, flags: %d",
"write", path, data, size, offset, fi->fh, fi->flags);
int ret;
@@ -345,7 +345,7 @@ static int tabfs_readdir(const char *path,
char *rdata;
size_t rsize;
exchange_json(&rdata, &rsize,
- "op: %Q, path: %Q, offset: %d",
+ "op: %Q, path: %Q, offset: %lld",
"readdir", path, offset);
struct json_token t;