]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme-print-json: Remove unnecessary string newline code
authorTokunori Ikegami <ikegami.t@gmail.com>
Fri, 13 Oct 2023 09:29:56 +0000 (18:29 +0900)
committerDaniel Wagner <wagi@monom.org>
Thu, 16 Nov 2023 10:05:54 +0000 (11:05 +0100)
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
nvme-print-json.c

index 7400dc6577c456a4decb054bf75d087d62352de4..62006c4ca58a4e7924e7489bf77cd66d793dba48 100644 (file)
@@ -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",
@@ -3866,7 +3866,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)));