Skip to content

Commit c5f2ca5

Browse files
Hannes Reineckekeithbusch
authored andcommitted
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>
1 parent 5bc46b4 commit c5f2ca5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/nvme/host/sysfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,7 @@ static ssize_t tls_key_show(struct device *dev,
672672

673673
if (!ctrl->tls_pskid)
674674
return 0;
675-
return sysfs_emit(buf, "%08x", ctrl->tls_pskid);
675+
return sysfs_emit(buf, "%08x\n", ctrl->tls_pskid);
676676
}
677677
static DEVICE_ATTR_RO(tls_key);
678678
#endif

0 commit comments

Comments
 (0)