]> www.infradead.org Git - users/sagi/libnvme.git/commit
examples: LID supported must be shifted right by 16
authorMartin Belanger <martin.belanger@dell.com>
Wed, 28 Sep 2022 12:57:33 +0000 (08:57 -0400)
committerMartin Belanger <martin.belanger@dell.com>
Wed, 28 Sep 2022 12:57:33 +0000 (08:57 -0400)
commit3d7137df6515e49d2534e577180d6ac7105b7eaa
tree685449cc86ea64357f6850a7cd2de050586009ff
parent2e054821cd40ed4b3e01102ce70888196639c49a
examples: LID supported must be shifted right by 16

To access the LID Specific Field (see Base specs) the values
from the Get Supported Log pages must be shifted right by 16.
The example code was missing the shift.

Also added better exception handling example.

Signed-off-by: Martin Belanger <martin.belanger@dell.com>
examples/discover-loop.py
libnvme/README.md