From 8b436d97b4efa1e914960c22c4ec6602fb230432 Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Sat, 9 Sep 2017 23:41:43 -0500 Subject: [PATCH] Add size field to walk command --- src/ox/fs/oxfstool.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ox/fs/oxfstool.cpp b/src/ox/fs/oxfstool.cpp index 768e73fac..ffe523831 100644 --- a/src/ox/fs/oxfstool.cpp +++ b/src/ox/fs/oxfstool.cpp @@ -343,7 +343,11 @@ int walk(int argc, char **args) { auto fs = createFileSystem(fsBuff, fsSize); if (fs) { fs->walk([](const char *type, uint64_t start, uint64_t end) { - cout << type << ", start: " << start << ", end: " << end << endl; + cout << type; + cout << "\tstart: " << start; + cout << "\tend: " << end; + cout << "\tsize: " << (end - start); + cout << endl; return 0; }); delete fs;