According to the ZNS specification, MAR/MOR is 0's based, and no limit for
these fields are represented as 0xffffffff, not as 0.
Since all ones is the same in little endian and big endian, no need to
do any conversion before doing the comparison.
Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com>
printf("ozcs : %u\n", le16_to_cpu(ns->ozcs));
}
- if (!le32_to_cpu(ns->mar) && human)
+ if (ns->mar == 0xffffffff && human)
printf("mar : No Limit\n");
else
printf("mar : %#x\n", le32_to_cpu(ns->mar));
- if (!le32_to_cpu(ns->mor) && human)
+ if (ns->mor == 0xffffffff && human)
printf("mor : No Limit\n");
else
printf("mor : %#x\n", le32_to_cpu(ns->mor));