Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab083b11 authored by Javier González's avatar Javier González Committed by Jens Axboe
Browse files

nvme: fix eui_show() print format



Fix print formatting, but keep the original output to prevent user
breakage as suggested by Joe Perches.

Signed-off-by: default avatarJavier González <javier@cnexlabs.com>
Reviewed-by: default avatarSagi Grimberg <sagi@grimberg.me>
Reviewed-by: default avatarKeith Busch <keith.busch@intel.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent a47619b5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2190,7 +2190,7 @@ static ssize_t eui_show(struct device *dev, struct device_attribute *attr,
								char *buf)
{
	struct nvme_ns *ns = nvme_get_ns_from_dev(dev);
	return sprintf(buf, "%8phd\n", ns->eui);
	return sprintf(buf, "%8ph\n", ns->eui);
}
static DEVICE_ATTR(eui, S_IRUGO, eui_show, NULL);