git: c5ed67dc90c2 - main - nvme: Prefer nvme_printf to printf when reporting formatting error
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 15 Apr 2022 20:46:50 UTC
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=c5ed67dc90c233074693a753060f15641afacf5f commit c5ed67dc90c233074693a753060f15641afacf5f Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2022-04-15 20:41:50 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2022-04-15 20:46:19 +0000 nvme: Prefer nvme_printf to printf when reporting formatting error Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D34872 --- sys/dev/nvme/nvme_ns.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/nvme/nvme_ns.c b/sys/dev/nvme/nvme_ns.c index da700ae9f59f..03880c570abd 100644 --- a/sys/dev/nvme/nvme_ns.c +++ b/sys/dev/nvme/nvme_ns.c @@ -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); }