MAR is currently printed as unsigned.
MOR is currently printed as signed.
They should use the same print format.
Printing MOR as unsigned on a controller that has no limit,
shows as -1, which doesn't make sense.
Since no limit is represented as 0xffffffff in the ZNS spec,
printing MAR/MOR as hex makes the most sense.
Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com>
printf("mar : %u\tActive Resources\n", le32_to_cpu(ns->mar) + 1);
}
} else {
- printf("mar : %u\n", le32_to_cpu(ns->mar));
+ printf("mar : %#x\n", le32_to_cpu(ns->mar));
}
if (human) {
printf("mor : %u\tOpen Resources\n", le32_to_cpu(ns->mor) + 1);
}
} else {
- printf("mor : %d\n", le32_to_cpu(ns->mor));
+ printf("mor : %#x\n", le32_to_cpu(ns->mor));
}
if (!le32_to_cpu(ns->rrl) && human)