Current -v verbose output of the nvme get-property command is a
no-op. So update it to make it consistent with the -H human-readable
output for this same command.
Signed-off-by: Martin George <marting@netapp.com>
_cleanup_nvme_dev_ struct nvme_dev *dev = NULL;
__u64 value;
int err;
+ nvme_print_flags_t flags = NORMAL;
struct get_reg_config cfg = {
.offset = -1,
return -EINVAL;
}
+ if (cfg.human_readable || argconfig_parse_seen(opts, "verbose"))
+ flags |= VERBOSE;
+
err = nvme_get_single_property(dev_fd(dev), &cfg, &value);
if (!err)
- nvme_show_single_property(cfg.offset, value, cfg.human_readable);
+ nvme_show_single_property(cfg.offset, value, flags);
return err;
}