]> www.infradead.org Git - users/sagi/libnvme.git/commit
examples: fix incorrect controller status in MI info output
authorLior Weintraub <liorw@pliops.com>
Mon, 24 Apr 2023 05:26:57 +0000 (08:26 +0300)
committerDaniel Wagner <wagi@monom.org>
Thu, 27 Apr 2023 13:01:08 +0000 (15:01 +0200)
commit270b48e58db86af27759b548d84b2f8ec0725795
tree3138e12c69632ed35a06c3f5f19d7de3626ed8c9
parent436776b6c022afd4003b76b072ab9e639bd55118
examples: fix incorrect controller status in MI info output

In the mi-mctp example, we're incorrectly reporting the percent drive
life used as the controller status. Fix the controller status output
to use the correct (ccs) field.

Signed-off-by: Lior Weintraub <liorw@pliops.com>
Reviewed-by: Jeremy Kerr <jk@codeconstruct.com.au>
examples/mi-mctp.c