Skip to content

Commit

Permalink
nvme: Fix for fdpa reserved field printing
Browse files Browse the repository at this point in the history
Noticed this when adding similar behavior for phy_rx_eom_log's odp, it
doesn't make much sense to right-shift the byte by 8.

Signed-off-by: Brandon Paupore <[email protected]>
  • Loading branch information
bpaupore-wdc committed Sep 22, 2023
1 parent a2587cb commit 133db4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nvme-print-stdout.c
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ static void stdout_media_unit_stat_log(struct nvme_media_unit_stat_log *mus_log)
static void stdout_fdp_config_fdpa(uint8_t fdpa)
{
__u8 valid = (fdpa >> 7) & 0x1;
__u8 rsvd = (fdpa >> 5) >> 0x3;
__u8 rsvd = (fdpa >> 5) & 0x3;
__u8 fdpvwc = (fdpa >> 4) & 0x1;
__u8 rgif = fdpa & 0xf;

Expand Down

0 comments on commit 133db4f

Please sign in to comment.