mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 05:04:02 +02:00
nvme: zns: include zone index in invalid zone type error
Include the zone index when reporting an invalid zone type during zone descriptor parsing. Signed-off-by: Xixin Liu <liuxixin@kylinos.cn> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Keith Busch <kbusch@kernel.org>
This commit is contained in:
parent
09c9062d4f
commit
3456b52552
|
|
@ -155,7 +155,8 @@ static int nvme_zone_parse_entry(struct nvme_ns *ns,
|
|||
struct blk_zone zone = { };
|
||||
|
||||
if ((entry->zt & 0xf) != NVME_ZONE_TYPE_SEQWRITE_REQ) {
|
||||
dev_err(ns->ctrl->device, "invalid zone type %#x\n", entry->zt);
|
||||
dev_err(ns->ctrl->device, "invalid zone type %#x at zone %u\n",
|
||||
entry->zt, idx);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user