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 X-Spam-Level: X-Spam-Status: No, score=-10.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 28E1BC433DF for ; Thu, 30 Jul 2020 08:20:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F3B0E2074B for ; Thu, 30 Jul 2020 08:20:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596097213; bh=d4c+wEfZHCUoQmOVXkFpcKTZur8ymNn5HK8mjL6I+ks=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=Y1aWFoNC3njc/ScW9qCgX6D1sIwmTocz+R7LfC7ZBfCnr15k9STocg5cWYiRlpvjX AJ4AmZ2PsFGsIat+URJv+fGTSHOM0sXu5HuYJTAEqhJ4miMChisBptGNSogBDIISmr xlJZghd8JrPqjA5uNAnvqCKo5d2JftsXgnBol0mA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729388AbgG3IHE (ORCPT ); Thu, 30 Jul 2020 04:07:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:44750 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729384AbgG3IHD (ORCPT ); Thu, 30 Jul 2020 04:07:03 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 1FC4420672; Thu, 30 Jul 2020 08:07:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1596096422; bh=d4c+wEfZHCUoQmOVXkFpcKTZur8ymNn5HK8mjL6I+ks=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S27n2RPxxML23Pk4iClIOiKHBnWLJnYlWdgbCmHQL1ZpzYAVMMF/MkrGzmG8D/3XO xr+u9sUm3fjldrRqsF1yKA5ZcdSizjSdb0bmQMxoOEf4fto4Ds3uk6alQvt2TTJcvZ vsw11NVizUEt51rvIONtLevxm17PSP9LIqVGAxhk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Xiongfeng Wang , "David S. Miller" Subject: [PATCH 4.19 06/17] net-sysfs: add a newline when printing tx_timeout by sysfs Date: Thu, 30 Jul 2020 10:04:32 +0200 Message-Id: <20200730074420.772186994@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200730074420.449233408@linuxfoundation.org> References: <20200730074420.449233408@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Xiongfeng Wang [ Upstream commit 9bb5fbea59f36a589ef886292549ca4052fe676c ] When I cat 'tx_timeout' by sysfs, it displays as follows. It's better to add a newline for easy reading. root@syzkaller:~# cat /sys/devices/virtual/net/lo/queues/tx-0/tx_timeout 0root@syzkaller:~# Signed-off-by: Xiongfeng Wang Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/core/net-sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c @@ -1045,7 +1045,7 @@ static ssize_t tx_timeout_show(struct ne trans_timeout = queue->trans_timeout; spin_unlock_irq(&queue->_xmit_lock); - return sprintf(buf, "%lu", trans_timeout); + return sprintf(buf, fmt_ulong, trans_timeout); } static unsigned int get_netdev_queue_index(struct netdev_queue *queue)