]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme: fix verbose logging
authorMartin George <marting@netapp.com>
Mon, 8 Jul 2024 16:03:58 +0000 (21:33 +0530)
committerDaniel Wagner <wagi@monom.org>
Wed, 10 Jul 2024 06:23:44 +0000 (08:23 +0200)
commit5cbfb1859bc3ece55d10b51f92ec77587fccc765
treeecc4db974c7a3485c03e93bda380763c72a34fd0
parent92eaf9a65fd52801898683a4de87d33ad5976fa7
nvme: fix verbose logging

The -v verbose option for certain nvme commands like id-ctrl,
id-ns, smart-log, sanitize-log, etc. is practically a no-op since
it only prints latency info in addition to the regular output.
But at the same time, these commands already implement a -H human
readable option which prints additional useful info. So fix the
-v option to make it synonymous with the -H option here. And while
we are at it, move the latency info from current INFO level (i.e.
-v logging) to DEBUG level (i.e. -vv logging) since it is better
suited there.

Signed-off-by: Martin George <marting@netapp.com>
nvme.c
util/logging.c