Adding upstream version 2.7.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
04338f02fe
commit
d6e1a5d456
663 changed files with 15529 additions and 6994 deletions
|
@ -252,15 +252,15 @@ static void ocp_print_C0_log_json(void *data)
|
|||
|
||||
static int get_c0_log_page(int fd, char *format)
|
||||
{
|
||||
enum nvme_print_flags fmt;
|
||||
__u8 *data;
|
||||
int i;
|
||||
int ret = 0;
|
||||
int fmt = -1;
|
||||
int ret;
|
||||
|
||||
fmt = validate_output_format(format);
|
||||
if (fmt < 0) {
|
||||
ret = validate_output_format(format, &fmt);
|
||||
if (ret < 0) {
|
||||
fprintf(stderr, "ERROR : OCP : invalid output format\n");
|
||||
return fmt;
|
||||
return ret;
|
||||
}
|
||||
|
||||
data = malloc(sizeof(__u8) * C0_SMART_CLOUD_ATTR_LEN);
|
||||
|
@ -307,6 +307,8 @@ static int get_c0_log_page(int fd, char *format)
|
|||
case JSON:
|
||||
ocp_print_C0_log_json(data);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
fprintf(stderr, "ERROR : OCP : Unable to read C0 data from buffer\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue