pvattest/tools: fix endianness in tools

`od` in contrast to `xxd` uses the system endianness for displying the
hexdump by default which leads to invalid results on little endian
systems.
Use the `--endian=big` option to fix the endianness problem.

Fixes: 3cc0b4cd ("pvattest/tools: remove xxd dependency from scripts")
Reviewed-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
This commit is contained in:
Steffen Eiden
2023-05-23 10:24:31 +02:00
parent 5522aaedf4
commit 96897ee32e
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ set -o pipefail
set -o nounset
set -e
XDUMP='od -A x -t x2z -v'
XDUMP='od -A x -t x2z -v --endian=big'
usage() {
cat <<-EOF

View File

@@ -14,7 +14,7 @@ set -o pipefail
set -o nounset
set -e
XDUMP='od -A x -t x2z -v'
XDUMP='od -A x -t x2z -v --endian=big'
def_output='sehdr.bin'
def_skip=0x14