From: Javier González Date: Wed, 8 Nov 2017 09:59:04 +0000 (+0100) Subject: nvme: fix eui_show() print format X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ab083b11f6f43af071f9b507e48d212bfbb2beb3;p=openwrt%2Fstaging%2Fblogic.git 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: Javier González Reviewed-by: Sagi Grimberg Reviewed-by: Keith Busch Signed-off-by: Christoph Hellwig Signed-off-by: Jens Axboe --- diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index 8a60cc786220..6c79b73fe2c3 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -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);