Skip to content

Commit 7d7d33c

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

1 file changed

Lines changed: 19 additions & 19 deletions

File tree

nvme-print-stdout.c

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,36 +1272,36 @@ static void stdout_subsystem_list(struct nvme_global_ctx *ctx, bool show_ana)
12721272

12731273
static void stdout_registers_cap(struct nvme_bar_cap *cap)
12741274
{
1275-
printf("\tNVM Subsystem Shutdown Enhancements Supported (NSSES): %s\n",
1275+
printf("\tNVM Subsystem Shutdown Enhancements Supported (NSSES) : %s\n",
12761276
cap->nsses ? "Supported" : "Not Supported");
1277-
printf("\tController Ready With Media Support (CRWMS): %s\n",
1277+
printf("\tController Ready With Media Support (CRWMS) : %s\n",
12781278
cap->crwms ? "Supported" : "Not Supported");
1279-
printf("\tController Ready Independent of Media Support (CRIMS): %s\n",
1279+
printf("\tController Ready Independent of Media Support (CRIMS) : %s\n",
12801280
cap->crims ? "Supported" : "Not Supported");
1281-
printf("\tNVM Subsystem Shutdown Supported (NSSS): %s\n", cap->nsss ? "Supported" : "Not Supported");
1282-
printf("\tController Memory Buffer Supported (CMBS): The Controller Memory Buffer is %s\n",
1281+
printf("\tNVM Subsystem Shutdown Supported (NSSS) : %s\n", cap->nsss ? "Supported" : "Not Supported");
1282+
printf("\tController Memory Buffer Supported (CMBS) : The Controller Memory Buffer is %s\n",
12831283
cap->cmbs ? "Supported" : "Not Supported");
1284-
printf("\tPersistent Memory Region Supported (PMRS): The Persistent Memory Region is %s\n",
1284+
printf("\tPersistent Memory Region Supported (PMRS) : The Persistent Memory Region is %s\n",
12851285
cap->pmrs ? "Supported" : "Not Supported");
1286-
printf("\tMemory Page Size Maximum (MPSMAX): %u bytes\n", 1 << (12 + cap->mpsmax));
1287-
printf("\tMemory Page Size Minimum (MPSMIN): %u bytes\n", 1 << (12 + cap->mpsmin));
1288-
printf("\tController Power Scope (CPS): %s\n",
1286+
printf("\tMemory Page Size Maximum (MPSMAX) : %u bytes\n", 1 << (12 + cap->mpsmax));
1287+
printf("\tMemory Page Size Minimum (MPSMIN) : %u bytes\n", 1 << (12 + cap->mpsmin));
1288+
printf("\tController Power Scope (CPS) : %s\n",
12891289
!cap->cps ? "Not Reported" : cap->cps == 1 ? "Controller scope" :
12901290
cap->cps == 2 ? "Domain scope" : "NVM subsystem scope");
1291-
printf("\tBoot Partition Support (BPS): %s\n", cap->bps ? "Yes" : "No");
1292-
printf("\tCommand Sets Supported (CSS): NVM command set is %s\n",
1291+
printf("\tBoot Partition Support (BPS) : %s\n", cap->bps ? "Yes" : "No");
1292+
printf("\tCommand Sets Supported (CSS) : NVM command set is %s\n",
12931293
cap->css & 0x01 ? "Supported" : "Not Supported");
1294-
printf("\t One or more I/O Command Sets are %s\n",
1294+
printf("\t One or more I/O Command Sets are %s\n",
12951295
cap->css & 0x40 ? "Supported" : "Not Supported");
1296-
printf("\t %s\n",
1296+
printf("\t %s\n",
12971297
cap->css & 0x80 ? "Only Admin Command Set Supported" : "I/O Command Set is Supported");
1298-
printf("\tNVM Subsystem Reset Supported (NSSRS): %s\n", cap->nssrs ? "Yes" : "No");
1299-
printf("\tDoorbell Stride (DSTRD): %u bytes\n", 1 << (2 + cap->dstrd));
1300-
printf("\tTimeout (TO): %u ms\n", cap->to * 500);
1301-
printf("\tArbitration Mechanism Supported (AMS): Weighted Round Robin with Urgent Priority Class is %s\n",
1298+
printf("\tNVM Subsystem Reset Supported (NSSRS) : %s\n", cap->nssrs ? "Yes" : "No");
1299+
printf("\tDoorbell Stride (DSTRD) : %u bytes\n", 1 << (2 + cap->dstrd));
1300+
printf("\tTimeout (TO) : %u ms\n", cap->to * 500);
1301+
printf("\tArbitration Mechanism Supported (AMS) : Weighted Round Robin with Urgent Priority Class is %s\n",
13021302
cap->ams & 0x01 ? "Supported" : "Not supported");
1303-
printf("\tContiguous Queues Required (CQR): %s\n", cap->cqr ? "Yes" : "No");
1304-
printf("\tMaximum Queue Entries Supported (MQES): %u\n\n", cap->mqes + 1);
1303+
printf("\tContiguous Queues Required (CQR) : %s\n", cap->cqr ? "Yes" : "No");
1304+
printf("\tMaximum Queue Entries Supported (MQES) : %u\n\n", cap->mqes + 1);
13051305
}
13061306

13071307
static void stdout_registers_version(__u32 vs)

0 commit comments

Comments
 (0)