Skip to content

Commit

Permalink
nvme-print-json: Remove unnecessary string newline code
Browse files Browse the repository at this point in the history
Signed-off-by: Tokunori Ikegami <[email protected]>
  • Loading branch information
ikegami-t committed Oct 13, 2023
1 parent 494dc7c commit cf6f6bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nvme-print-json.c
Original file line number Diff line number Diff line change
Expand Up @@ -1533,7 +1533,7 @@ static void json_lba_status(struct nvme_lba_status *list,
switch (list->cmpc) {
case 1:
json_object_add_value_string(root, "cmpc-definition",
"Completed due to transferring the amount of data specified in the MNDW field\n");
"Completed due to transferring the amount of data specified in the MNDW field");
break;
case 2:
json_object_add_value_string(root, "cmpc-definition",
Expand Down Expand Up @@ -3867,7 +3867,7 @@ static void json_directive_show_fields_streams(__u8 doper, unsigned int result,
"Stream Write Size (in unit of LB size) (SWS)",
le16_to_cpu(*(__u32 *)(field + 16)));
json_object_add_value_uint(root,
"Stream Granularity Size (in unit of SWS) (SGS)\n",
"Stream Granularity Size (in unit of SWS) (SGS)",
le16_to_cpu(*(field + 20)));
json_object_add_value_uint(root, "Namespace Streams Allocated (NSA)",
le16_to_cpu(*(field + 22)));
Expand Down

0 comments on commit cf6f6bb

Please sign in to comment.