1
0
Fork 0

Adding upstream version 2.7.1.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-16 12:25:41 +01:00
parent 04338f02fe
commit d6e1a5d456
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
663 changed files with 15529 additions and 6994 deletions

View file

@ -296,7 +296,7 @@ static int huawei_list(int argc, char **argv, struct command *command,
struct huawei_list_item *list_items;
unsigned int i, n, ret;
unsigned int huawei_num = 0;
int fmt;
enum nvme_print_flags fmt;
const char *desc = "Retrieve basic information for the given huawei device";
struct config {
char *output_format;
@ -315,9 +315,9 @@ static int huawei_list(int argc, char **argv, struct command *command,
if (ret)
return ret;
fmt = validate_output_format(cfg.output_format);
if (fmt != JSON && fmt != NORMAL)
return -EINVAL;
ret = validate_output_format(cfg.output_format, &fmt);
if (ret < 0 || (fmt != JSON && fmt != NORMAL))
return ret;
n = scandir("/dev", &devices, nvme_namespace_filter, alphasort);
if (n <= 0)