nvme: Prefer nvme_printf to printf when reporting formatting error
Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D34872
This commit is contained in:
parent
3740a8db13
commit
c5ed67dc90
@ -561,7 +561,8 @@ nvme_ns_construct(struct nvme_namespace *ns, uint32_t id,
|
||||
* not >=.
|
||||
*/
|
||||
if (flbas_fmt > ns->data.nlbaf) {
|
||||
printf("lba format %d exceeds number supported (%d)\n",
|
||||
nvme_printf(ctrlr,
|
||||
"lba format %d exceeds number supported (%d)\n",
|
||||
flbas_fmt, ns->data.nlbaf + 1);
|
||||
return (ENXIO);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user