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 <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Keith Busch <[email protected]>
1 parent 5bc46b4 commit c5f2ca5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)