Skip to content

Commit aefb6ae

Browse files
martin-gpyigaw
authored andcommitted
nvme-print: align print output for get-reg cc
The print formatting for get-reg cc output is off. Make minor changes to align the output for better readability. Signed-off-by: Martin George <[email protected]>
1 parent 23f16ae commit aefb6ae

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

nvme-print-stdout.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,7 +1312,7 @@ static void stdout_registers_version(__u32 vs)
13121312

13131313
static void stdout_registers_cc_ams(__u8 ams)
13141314
{
1315-
printf("\tArbitration Mechanism Selected (AMS): ");
1315+
printf("\tArbitration Mechanism Selected (AMS) : ");
13161316
switch (ams) {
13171317
case NVME_CC_AMS_RR:
13181318
printf("Round Robin\n");
@@ -1331,7 +1331,7 @@ static void stdout_registers_cc_ams(__u8 ams)
13311331

13321332
static void stdout_registers_cc_shn(__u8 shn)
13331333
{
1334-
printf("\tShutdown Notification (SHN): ");
1334+
printf("\tShutdown Notification (SHN) : ");
13351335
switch (shn) {
13361336
case NVME_CC_SHN_NONE:
13371337
printf("No notification; no effect\n");
@@ -1350,22 +1350,22 @@ static void stdout_registers_cc_shn(__u8 shn)
13501350

13511351
static void stdout_registers_cc(__u32 cc)
13521352
{
1353-
printf("\tController Ready Independent of Media Enable (CRIME): %s\n",
1353+
printf("\tController Ready Independent of Media Enable (CRIME) : %s\n",
13541354
NVME_CC_CRIME(cc) ? "Enabled" : "Disabled");
13551355

1356-
printf("\tI/O Completion Queue Entry Size (IOCQES): %u bytes\n",
1356+
printf("\tI/O Completion Queue Entry Size (IOCQES) : %u bytes\n",
13571357
POWER_OF_TWO(NVME_CC_IOCQES(cc)));
1358-
printf("\tI/O Submission Queue Entry Size (IOSQES): %u bytes\n",
1358+
printf("\tI/O Submission Queue Entry Size (IOSQES) : %u bytes\n",
13591359
POWER_OF_TWO(NVME_CC_IOSQES(cc)));
13601360
stdout_registers_cc_shn(NVME_CC_SHN(cc));
13611361
stdout_registers_cc_ams(NVME_CC_AMS(cc));
1362-
printf("\tMemory Page Size (MPS): %u bytes\n",
1362+
printf("\tMemory Page Size (MPS) : %u bytes\n",
13631363
POWER_OF_TWO(12 + NVME_CC_MPS(cc)));
1364-
printf("\tI/O Command Set Selected (CSS): %s\n",
1364+
printf("\tI/O Command Set Selected (CSS) : %s\n",
13651365
NVME_CC_CSS(cc) == NVME_CC_CSS_NVM ? "NVM Command Set" :
13661366
NVME_CC_CSS(cc) == NVME_CC_CSS_CSI ? "All supported I/O Command Sets" :
13671367
NVME_CC_CSS(cc) == NVME_CC_CSS_ADMIN ? "Admin Command Set only" : "Reserved");
1368-
printf("\tEnable (EN): %s\n\n", NVME_CC_EN(cc) ? "Yes" : "No");
1368+
printf("\tEnable (EN) : %s\n\n", NVME_CC_EN(cc) ? "Yes" : "No");
13691369
}
13701370

13711371
static void stdout_registers_csts_shst(__u8 shst)

0 commit comments

Comments
 (0)