Skip to content

Commit aaa4664

Browse files
ikegami-tigaw
authored andcommitted
nvme-print-stdout: Use NVME_GET for FID supported and effects FSP
Use it with NVME_FID_SUPPORTED_EFFECTS register definitions existed. Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
1 parent 466ff7d commit aaa4664

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nvme-print-stdout.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ static void stdout_fid_support_effects_log_human(__u32 fid_support)
598598
printf(" CCC%s", (fid_support & NVME_FID_SUPPORTED_EFFECTS_CCC) ? set : clr);
599599
printf(" USS%s", (fid_support & NVME_FID_SUPPORTED_EFFECTS_UUID_SEL) ? set : clr);
600600

601-
fsp = (fid_support >> NVME_FID_SUPPORTED_EFFECTS_SCOPE_SHIFT) & NVME_FID_SUPPORTED_EFFECTS_SCOPE_MASK;
601+
fsp = NVME_GET(fid_support, FID_SUPPORTED_EFFECTS_SCOPE);
602602

603603
printf(" NAMESPACE SCOPE%s", (fsp & NVME_FID_SUPPORTED_EFFECTS_SCOPE_NS) ? set : clr);
604604
printf(" CONTROLLER SCOPE%s", (fsp & NVME_FID_SUPPORTED_EFFECTS_SCOPE_CTRL) ? set : clr);

0 commit comments

Comments
 (0)