Skip to content

Commit

Permalink
nvme: add a newline to the 'tls_key' sysfs attribute
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hannes Reinecke authored and Keith Busch committed Aug 22, 2024
1 parent 5bc46b4 commit c5f2ca5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/nvme/host/sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c5f2ca5

Please sign in to comment.