Skip to content

Commit

Permalink
ublksrv_tgt: fix cmd_dev_get_features
Browse files Browse the repository at this point in the history
Signed-off-by: Ming Lei <[email protected]>
  • Loading branch information
ming1 committed Aug 20, 2024
1 parent 69f81a3 commit e043e10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ublksrv_tgt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,7 @@ static int cmd_dev_get_features(int argc, char *argv[])

printf("ublk_drv features: 0x%llx\n", features);

for (i = 0; i < sizeof(features); i++) {
for (i = 0; i < sizeof(features) * 8; i++) {
const char *feat;

if (!((1ULL << i) & features))
Expand Down

0 comments on commit e043e10

Please sign in to comment.