aboutsummaryrefslogtreecommitdiff
path: root/inhex/README
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2022-07-19 04:02:56 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2022-07-19 04:02:56 +0000
commit270cd7304dd379ee490df57120d281641c292398 (patch)
tree460d315db53c3b8214402650ad5b94bcba4c56dc /inhex/README
parentf1c4468bc5353fa361029e790b3ab370d22d5101 (diff)
downloadsg3_utils-270cd7304dd379ee490df57120d281641c292398.tar.gz
another round of sgj_* function renaming; sg_inq+sg_vpd: add new Block Limits VPD page code
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@961 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'inhex/README')
-rw-r--r--inhex/README16
1 files changed, 11 insertions, 5 deletions
diff --git a/inhex/README b/inhex/README
index ed2419ce..77557a05 100644
--- a/inhex/README
+++ b/inhex/README
@@ -70,13 +70,19 @@ The second form of sg_decode_sense appends an ASCII rendering of the 16
bytes to the right of each line.
When ASCII hexadecimal is being used as input to a utility in this
-package, the "input offset" at the start of each line must (and the
-optional ASCII rendering to the right of each line, must not be given.
+package, the "input offset" at the start of each line (and the optional
+ASCII rendering to the right of each line) must not be given.
That can be done with hexdump:
hexdump -An -C -v vpd_zbdc.raw
+ ^^^
+That is a syntax error, there is no 'A' option <<<<<<<< check
+
+And the sg_decode_sense utility can do it with (with the --nodecode option):
+ sg_decode_sense -N --binary=vpd_zbdc.raw -HHH
+That will print suitable lines of hexadecimal (16 bytes per line) to the
+console (stdout) To go the other way (i.e. hexadecimal to binary):
+ sg_decode_sense -N --inhex=vpd_zbdc.hex --write=vpd_zbdc.bin
-And the sg_decode_sense utility can do it with:
- sg_decode_sense --binary=vpd_zbdc.raw -HHH
Conclusion
----------
@@ -85,4 +91,4 @@ that support --inhex and don't have hex data already. Special cases are
also welcome. They help the author test this code.
Douglas Gilbert
-21st January 2022
+18th July 2022