1
0
Fork 0

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>
hifive-unleashed-5.1
Dan Williams 2018-04-10 14:23:47 -07:00
parent 718fda67d2
commit 19357a685e
1 changed files with 1 additions and 1 deletions

View File

@ -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);