The offsets printed by "od" are octal numbers. So, we need to add "0" at the head of the $offset to parse it as an octal number. Fixes: 37520a314bd4 ("fstests: Don't use gawk's strtonum") Signed-off-by: Naohiro Aota <naohiro.aota@xxxxxxx> --- common/filter | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/filter b/common/filter index 6140e58368d7..88fcb6ef68ee 100644 --- a/common/filter +++ b/common/filter @@ -495,7 +495,7 @@ _filter_od() fi offset="${line%% *}" - printf '%o%s\n' $((offset / BLOCK_SIZE)) "${line#$offset}" + printf '%o%s\n' $(("0$offset" / BLOCK_SIZE)) "${line#$offset}" done } -- 2.24.0