Skip to content

Commit b662981

Browse files
Gregory C. Oakeskeithbusch
authored andcommitted
Fixed malformed json output from sanitize-log.
1 parent 3b914cd commit b662981

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

nvme-print.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3670,8 +3670,10 @@ void nvme_show_sanitize_log(struct nvme_sanitize_log_page *sanitize,
36703670

36713671
if (flags & BINARY)
36723672
d_raw((unsigned char *)sanitize, sizeof(*sanitize));
3673-
else if (flags & JSON)
3673+
else if (flags & JSON) {
36743674
json_sanitize_log(sanitize, devname);
3675+
return;
3676+
}
36753677

36763678
printf("Sanitize Progress (SPROG) : %u",
36773679
le16_to_cpu(sanitize->progress));

0 commit comments

Comments
 (0)