]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme-print: Move num argument parsing into callbacks
authorDaniel Wagner <dwagner@suse.de>
Fri, 23 Jun 2023 06:40:59 +0000 (08:40 +0200)
committerDaniel Wagner <wagi@monom.org>
Wed, 28 Jun 2023 11:24:34 +0000 (13:24 +0200)
commit9d9d60e24dcb686ad56f7a30c4ba0c2421732536
tree909fda7d12982b9a99a05376fb3b3def27d6ef40
parenteb911f432db9903c31ab587b22f9c3d6f6a6ca51
nvme-print: Move num argument parsing into callbacks

The goal for the libnvme type print function is only to use
the types from the library as argument. The num argument can be
parsed from the ctrl_list thus move it the callbacks directly.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
nvme-print-binary.c
nvme-print-json.c
nvme-print-stdout.c
nvme-print.c
nvme-print.h