mirror of
https://github.com/raspberrypi/rpi-eeprom.git
synced 2026-01-21 06:13:33 +08:00
This command pipeline: printf '00000000000000000000000000000000' | od -An -t x1 | tr -d ' ' produces this output: 30303030303030303030303030303030 * Add a `-v` to od and a `\n` to the tr arg like so: printf '00000000000000000000000000000000' | od -v -An -t x1 | tr -d ' \n' to instead produce this output: 3030303030303030303030303030303030303030303030303030303030303030 Although it's unlikely that the revision value would generate multiple lines or contain duplicate lines, it's better to be safe than sorry especially since the changes to do so do not introduce any extra overhead and use only POSIX-specified options/arguments. It's also possible this code fragment could be copied and pasted elsewhere to provide a "hexdump" of something that might be expected to generate multiple lines and which may potentially contain duplicates. By fixing the code here any breakage caused by such copying and pasting is avoided. Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
25 KiB
Executable File
25 KiB
Executable File