diff options
author | Dan Williams <dan.j.williams@intel.com> | 2018-04-10 23:23:47 +0200 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2018-04-16 17:18:51 +0200 |
commit | 19357a685e870eeb825cbb7fd3104082ab041987 (patch) | |
tree | 10052d4fe5a0a363c1d6328f8f5747388254c591 /tools/testing/nvdimm | |
parent | tools/testing/nvdimm: support nfit_test_dimm attributes under nfit_test.1 (diff) | |
download | linux-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.c | 2 |
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); |