From: Hannes Reinecke Date: Mon, 22 Jul 2024 12:02:21 +0000 (+0200) Subject: nvme: add a newline to the 'tls_key' sysfs attribute X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c5f2ca52d00de5d0348a758a28b51ddf5e685a89;p=users%2Fhch%2Fblock.git nvme: add a newline to the 'tls_key' sysfs attribute Print a newline for easier userspace handling. Signed-off-by: Hannes Reinecke Reviewed-by: Sagi Grimberg Reviewed-by: Christoph Hellwig Signed-off-by: Keith Busch --- 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