Skip to content

Commit

Permalink
nvme-print-stdout: Split line length exceeded 100 columns
Browse files Browse the repository at this point in the history
This resolves checkpatch line length exceeding warning.

Signed-off-by: Tokunori Ikegami <[email protected]>
  • Loading branch information
ikegami-t committed Mar 12, 2024
1 parent 6414c33 commit ad48ee1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions nvme-print-stdout.c
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,8 @@ static void stdout_fdp_events(struct nvme_fdp_events_log *log)
printf(" Number of LBAs Moved (NLBAM): %"PRIu16"\n", le16_to_cpu(mr->nlbam));

if (mr->flags & NVME_FDP_EVENT_REALLOC_F_LBAV)
printf(" Logical Block Address (LBA): 0x%"PRIx64"\n", le64_to_cpu(mr->lba));
printf(" Logical Block Address (LBA): 0x%"PRIx64"\n",
le64_to_cpu(mr->lba));
}

if (event->flags & NVME_FDP_EVENT_F_LV) {
Expand Down Expand Up @@ -1243,8 +1244,8 @@ static void stdout_registers_cmbloc(__u32 cmbloc, __u32 cmbsz)
printf("\tController Memory Buffer feature is not supported\n\n");
return;
}
printf("\tOffset (OFST): 0x%x (See cmbsz.szu for granularity)\n",
(cmbloc & 0xfffff000) >> 12);
printf("\tOffset (OFST): ");
printf("0x%x (See cmbsz.szu for granularity)\n", (cmbloc & 0xfffff000) >> 12);

printf("\tCMB Queue Dword Alignment (CQDA): %d\n",
(cmbloc & 0x00000100) >> 8);
Expand Down Expand Up @@ -2284,8 +2285,8 @@ static void stdout_id_ctrl_ocfs(__le16 ctrl_ocfs)
printf(" [15:4] : %#x\tReserved\n", rsvd);
for (copy_fmt = 3; copy_fmt >= 0; copy_fmt--) {
copy_fmt_supported = ocfs >> copy_fmt & 1;
printf(" [%d:%d] : %#x\tController Copy Format %xh %sSupported\n", copy_fmt, copy_fmt,
copy_fmt_supported, copy_fmt, copy_fmt_supported ? "" : "Not ");
printf(" [%d:%d] : %#x\tController Copy Format %xh %sSupported\n", copy_fmt,
copy_fmt, copy_fmt_supported, copy_fmt, copy_fmt_supported ? "" : "Not ");
}
printf("\n");
}
Expand Down

0 comments on commit ad48ee1

Please sign in to comment.