summaryrefslogtreecommitdiffstats
path: root/tools/testing/nvdimm
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2018-04-10 23:23:47 +0200
committerDan Williams <dan.j.williams@intel.com>2018-04-16 17:18:51 +0200
commit19357a685e870eeb825cbb7fd3104082ab041987 (patch)
tree10052d4fe5a0a363c1d6328f8f5747388254c591 /tools/testing/nvdimm
parenttools/testing/nvdimm: support nfit_test_dimm attributes under nfit_test.1 (diff)
downloadlinux-19357a685e870eeb825cbb7fd3104082ab041987.tar.xz
linux-19357a685e870eeb825cbb7fd3104082ab041987.zip
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 <dan.j.williams@intel.com>
Diffstat (limited to 'tools/testing/nvdimm')
-rw-r--r--tools/testing/nvdimm/test/nfit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/nvdimm/test/nfit.c b/tools/testing/nvdimm/test/nfit.c
index c8c88363311b..51fc41c24a77 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);