mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user