From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8A0BAC3DA42 for ; Wed, 17 Jul 2024 09:10:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=mEVFUR9oVmZVCw5i2vjgfftJ3ZERag/n+RP5XLWwaDY=; b=uZrylrDYzueYug+fHkV8P9W6dt xD44l9HVEM+QLV3ZEOh9ZvjGNUqkF+mJ0cZm6OeX1RvCGGQ9Jfo0WwBolD61ROIznUm2eI8PtDEZF RSdr5FpccgQEYpx6RXwDHerwov7ReyYUnngx1C/LFJFQ/6bbIJBk7geHHMtCR4JF4LuQF410aOHWF 64MWyXiZKhEMksbIFO2KfPBonZPFZR9gWkCslQ0tzN2Lc8fgE0QRYSn43TWJBJYVE+dicL1JEGX1i tmsaGeWXJlXpta633I6Rl3byjw4UcmJnGlNEsUGsgbKuqcmXkjg9XbMPuuFKRQ2LqcXbfCzv1t/gg 5Hzjz5uQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sU0gW-0000000DFol-0O5F; Wed, 17 Jul 2024 09:10:52 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sU0gS-0000000DFmY-3hHG for linux-nvme@lists.infradead.org; Wed, 17 Jul 2024 09:10:50 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 6491E6158F; Wed, 17 Jul 2024 09:10:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE791C32782; Wed, 17 Jul 2024 09:10:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1721207448; bh=vKCZGsqgIqVE83qpd+gQHyJxRB0NEdxqv5QYC6Dinvk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Eh2fQEORQo+qMYSVY1d2yWjEv6F+K+ABUvvOEUSBBLQYmR2qjC/czDJ/ciFCjwcRJ flHAPjlsWeSWohNTqQ6WsycGc2Au8Cf6WsuC0hCG3yOQmKeFXLz3rMdZHd28VuUMPU k/fXtjlD+x8M2ogXBL4faIUsDSUBmfJyibdbztyaDlAfzG+isOoNkAVETak2v8Wx5a XxdgglFcKhwMurCOKy8LV6Y8PYklXR+B+fmMIVLtRztMjb8j21gz1/Ar5t2yo5GlYT 2YRaJGOT+GqpsQgGfnFOdi+H/JbLfKPtwhmTTzRuv7TaWNcKjuglzq8g/YQwKrktsK lhD30dzCegdtQ== From: Hannes Reinecke To: Sagi Grimberg Cc: Christoph Hellwig , Keith Busch , linux-nvme@lists.infradead.org, Hannes Reinecke Subject: [PATCH 04/16] nvme: add a newline to the 'tls_key' sysfs attribute Date: Wed, 17 Jul 2024 11:10:19 +0200 Message-Id: <20240717091031.143188-5-hare@kernel.org> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240717091031.143188-1-hare@kernel.org> References: <20240717091031.143188-1-hare@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240717_021048_983638_962A9700 X-CRM114-Status: GOOD ( 11.87 ) X-BeenThere: linux-nvme@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-nvme" Errors-To: linux-nvme-bounces+linux-nvme=archiver.kernel.org@lists.infradead.org Print a newline for easier userspace handling. Signed-off-by: Hannes Reinecke Reviewed-by: Sagi Grimberg --- drivers/nvme/host/sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvme/host/sysfs.c b/drivers/nvme/host/sysfs.c index 5b1dee8a66ef..be36206cb594 100644 --- a/drivers/nvme/host/sysfs.c +++ b/drivers/nvme/host/sysfs.c @@ -673,7 +673,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 -- 2.35.3