diff options
author | Hannes Reinecke <hare@kernel.org> | 2024-07-22 14:02:21 +0200 |
---|---|---|
committer | Keith Busch <kbusch@kernel.org> | 2024-08-22 22:25:11 +0200 |
commit | c5f2ca52d00de5d0348a758a28b51ddf5e685a89 (patch) | |
tree | c942aff9ffcb5f1f3d796f1810b91173dede48a7 /drivers/nvme | |
parent | nvme-tcp: check for invalidated or revoked key (diff) | |
download | linux-c5f2ca52d00de5d0348a758a28b51ddf5e685a89.tar.xz linux-c5f2ca52d00de5d0348a758a28b51ddf5e685a89.zip |
nvme: add a newline to the 'tls_key' sysfs attribute
Print a newline for easier userspace handling.
Signed-off-by: Hannes Reinecke <hare@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'drivers/nvme')
-rw-r--r-- | drivers/nvme/host/sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/sysfs.c b/drivers/nvme/host/sysfs.c index 72675b59a7a7..c391ad6c5a88 100644 --- a/drivers/nvme/host/sysfs.c +++ b/drivers/nvme/host/sysfs.c @@ -672,7 +672,7 @@ static ssize_t tls_key_show(struct device *dev, if (!ctrl->tls_pskid) return 0; - return sysfs_emit(buf, "%08x", ctrl->tls_pskid); + return sysfs_emit(buf, "%08x\n", ctrl->tls_pskid); } static DEVICE_ATTR_RO(tls_key); #endif |