[PATCH 10/17] nvme: add a newline to the 'tls_key' sysfs attribute
Hannes Reinecke
hare at kernel.org
Mon Mar 18 08:03:09 PDT 2024
Print a newline for easier userspace handling.
Signed-off-by: Hannes Reinecke <hare at suse.de>
---
drivers/nvme/host/sysfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/nvme/host/sysfs.c b/drivers/nvme/host/sysfs.c
index 1f9e57fbfee3..07ec26de2d91 100644
--- a/drivers/nvme/host/sysfs.c
+++ b/drivers/nvme/host/sysfs.c
@@ -679,7 +679,7 @@ static ssize_t tls_key_show(struct device *dev,
test_bit(KEY_FLAG_INVALIDATED, &key->flags))
return -EKEYREVOKED;
- return sysfs_emit(buf, "%08x", key_serial(key));
+ return sysfs_emit(buf, "%08x\n", key_serial(key));
}
static DEVICE_ATTR_RO(tls_key);
#endif
--
2.35.3
More information about the Linux-nvme
mailing list