diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-08-15 12:32:15 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2022-08-15 12:32:15 +0000 |
commit | fd268d35cbddff04fc0b27a8af2c97185c8a97ba (patch) | |
tree | 9c180a60597c0c8cb9eebc7c1c6841787c856f42 /plugins/solidigm | |
parent | Releasing debian version 2.1~rc0-1. (diff) | |
download | nvme-cli-fd268d35cbddff04fc0b27a8af2c97185c8a97ba.tar.xz nvme-cli-fd268d35cbddff04fc0b27a8af2c97185c8a97ba.zip |
Merging upstream version 2.1.2.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'plugins/solidigm')
-rw-r--r-- | plugins/solidigm/solidigm-garbage-collection.c | 2 | ||||
-rw-r--r-- | plugins/solidigm/solidigm-smart.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/solidigm/solidigm-garbage-collection.c b/plugins/solidigm/solidigm-garbage-collection.c index c7f1286..415722b 100644 --- a/plugins/solidigm/solidigm-garbage-collection.c +++ b/plugins/solidigm/solidigm-garbage-collection.c @@ -86,7 +86,7 @@ int solidigm_get_garbage_collection_log(int argc, char **argv, struct command *c if (flags == -EINVAL) { fprintf(stderr, "Invalid output format '%s'\n", cfg.output_format); close(fd); - return fd; + return flags; } garbage_control_collection_log_t gc_log; diff --git a/plugins/solidigm/solidigm-smart.c b/plugins/solidigm/solidigm-smart.c index 4b30cab..77a2210 100644 --- a/plugins/solidigm/solidigm-smart.c +++ b/plugins/solidigm/solidigm-smart.c @@ -228,7 +228,7 @@ int solidigm_get_additional_smart_log(int argc, char **argv, struct command *cmd if (flags == -EINVAL) { fprintf(stderr, "Invalid output format '%s'\n", cfg.output_format); close(fd); - return fd; + return flags; } err = nvme_get_log_simple(fd, solidigm_vu_smart_log_id, sizeof(smart_log_payload), &smart_log_payload); |