diff options
author | Omar Rizwan <omar.rizwan@gmail.com> | 2021-01-12 00:17:34 -0800 |
---|---|---|
committer | Omar Rizwan <omar.rizwan@gmail.com> | 2021-01-12 00:17:34 -0800 |
commit | 6d4b8ef5d17ac2c8068bcdf623df8923ca5b493d (patch) | |
tree | e31f70ed1eb0e45959563503226e80a990f34903 /fs | |
parent | 9e1a145d23c313f8aa3b50986c331562542e8ba7 (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)
Diffstat (limited to 'fs')
-rw-r--r-- | fs/tabfs.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |