From patchwork Mon Sep 28 12:48:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 523330 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 8ED7C14017E for ; Mon, 28 Sep 2015 22:49:20 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933295AbbI1Ms4 (ORCPT ); Mon, 28 Sep 2015 08:48:56 -0400 Received: from webbox1416.server-home.net ([77.236.96.61]:41463 "EHLO webbox1416.server-home.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756780AbbI1Msz (ORCPT ); Mon, 28 Sep 2015 08:48:55 -0400 Received: from imapserver.systec-electronic.com (unknown [212.185.67.146]) by webbox1416.server-home.net (Postfix) with ESMTPA id 41BFF27A552; Mon, 28 Sep 2015 14:48:53 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by imapserver.systec-electronic.com (Postfix) with ESMTP id 3649EDA0C4C; Mon, 28 Sep 2015 14:48:53 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at imapserver.systec-electronic.com Received: from imapserver.systec-electronic.com ([127.0.0.1]) by localhost (imapserver.systec-electronic.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GHkE1sikz1aj; Mon, 28 Sep 2015 14:48:50 +0200 (CEST) Received: from ws-stein.systec.local (ws-stein.systec.local [192.168.10.125]) by imapserver.systec-electronic.com (Postfix) with ESMTP id B712ADA0ABB; Mon, 28 Sep 2015 14:48:50 +0200 (CEST) From: Alexander Stein To: "David S. Miller" Cc: Alexander Stein , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/1] net sysfs: Print link speed as signed integer Date: Mon, 28 Sep 2015 14:48:49 +0200 Message-Id: <1443444529-12868-1-git-send-email-alexander.stein@systec-electronic.com> X-Mailer: git-send-email 2.4.9 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Otherwise 4294967295 (MBit/s) (-1) will be printed when there is no link. Documentation/ABI/testing/sysfs-class-net does not state if this shall be signed or unsigned. Signed-off-by: Alexander Stein --- net/core/net-sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index 805a95a..e3f7eea 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c @@ -31,7 +31,7 @@ static const char fmt_hex[] = "%#x\n"; static const char fmt_long_hex[] = "%#lx\n"; static const char fmt_dec[] = "%d\n"; -static const char fmt_udec[] = "%u\n"; +static const char fmt_udec[] = "%d\n"; static const char fmt_ulong[] = "%lu\n"; static const char fmt_u64[] = "%llu\n";