Skip to content

Commit

Permalink
nvme-print-json: append array object in json_support_log
Browse files Browse the repository at this point in the history
The valid object is of type array not obj, thus use obj_add_array to add
it to the root.

Signed-off-by: Daniel Wagner <[email protected]>
  • Loading branch information
igaw committed Feb 14, 2024
1 parent 83aad43 commit 6118dd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nvme-print-json.c
Original file line number Diff line number Diff line change
Expand Up @@ -3836,7 +3836,7 @@ static void json_support_log(struct nvme_supported_log_pages *support_log,
}
}

obj_add_obj(r, "supported_logs", valid);
obj_add_array(r, "supported_logs", valid);

json_print(r);
}
Expand Down

0 comments on commit 6118dd5

Please sign in to comment.