diff --git a/ublksrv_tgt.cpp b/ublksrv_tgt.cpp index 068632c6..9f54440a 100644 --- a/ublksrv_tgt.cpp +++ b/ublksrv_tgt.cpp @@ -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))