]> www.infradead.org Git - users/sagi/libnvme.git/commit
examples/mi-mctp: Add Get Log Page example
authorJeremy Kerr <jk@codeconstruct.com.au>
Tue, 26 Oct 2021 09:36:42 +0000 (17:36 +0800)
committerJeremy Kerr <jk@codeconstruct.com.au>
Tue, 21 Jun 2022 03:52:55 +0000 (11:52 +0800)
commita707319a75f1cce266fe1615c4289ba1c73cdea0
tree44179a3d8560f8d840bc90c92023c86134d86d24
parent0d4a1a395a38b9ef24f2a9801ff3a8530236ce68
examples/mi-mctp: Add Get Log Page example

Since we now have the Get Log Page API, add an example to the mi-mctp
utility. This will dump the log page data as hex:

  # mi-mctp 1 9 get-log-page 1
  Get log page (log id = 0x01) data:
  00000000  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
  00000010  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
  00000020  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
  [...]

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