1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00

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>
This commit is contained in:
Hannes Reinecke 2024-07-22 14:02:21 +02:00 committed by Keith Busch
parent 5bc46b49c8
commit c5f2ca52d0

View file

@ -672,7 +672,7 @@ static ssize_t tls_key_show(struct device *dev,
if (!ctrl->tls_pskid) if (!ctrl->tls_pskid)
return 0; 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); static DEVICE_ATTR_RO(tls_key);
#endif #endif