From: Dan Williams Date: Tue, 10 Apr 2018 21:23:47 +0000 (-0700) Subject: tools/testing/nvdimm: fix missing newline in nfit_test_dimm 'handle' attribute X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=19357a685e870eeb825cbb7fd3104082ab041987;p=linux.git tools/testing/nvdimm: fix missing newline in nfit_test_dimm 'handle' attribute Sysfs userspace tooling generally expects the kernel to emit a newlines when reading sysfs attributes. Signed-off-by: Dan Williams --- diff --git a/tools/testing/nvdimm/test/nfit.c b/tools/testing/nvdimm/test/nfit.c index c8c88363311bc..51fc41c24a77c 100644 --- a/tools/testing/nvdimm/test/nfit.c +++ b/tools/testing/nvdimm/test/nfit.c @@ -1193,7 +1193,7 @@ static ssize_t handle_show(struct device *dev, struct device_attribute *attr, if (dimm < 0) return dimm; - return sprintf(buf, "%#x", handle[dimm]); + return sprintf(buf, "%#x\n", handle[dimm]); } DEVICE_ATTR_RO(handle);