diff options
author | Dan Williams <dan.j.williams@intel.com> | 2018-04-10 14:23:47 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2018-04-16 08:18:51 -0700 |
commit | 19357a685e870eeb825cbb7fd3104082ab041987 (patch) | |
tree | 10052d4fe5a0a363c1d6328f8f5747388254c591 /tools/testing/nvdimm | |
parent | 718fda67d2f69cc6074b4b6a740a6e4aacd44eff (diff) | |
download | talos-obmc-linux-19357a685e870eeb825cbb7fd3104082ab041987.tar.gz talos-obmc-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); |