From patchwork Tue Nov 6 01:13:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen Gang X-Patchwork-Id: 197379 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 5D8CF2C00B1 for ; Tue, 6 Nov 2012 12:12:39 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754765Ab2KFBMh (ORCPT ); Mon, 5 Nov 2012 20:12:37 -0500 Received: from intranet.asianux.com ([58.214.24.6]:43703 "EHLO intranet.asianux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754305Ab2KFBMg (ORCPT ); Mon, 5 Nov 2012 20:12:36 -0500 Received: by intranet.asianux.com (Postfix, from userid 103) id F0422184020C; Tue, 6 Nov 2012 09:12:35 +0800 (CST) X-Spam-Score: -100.8 X-Spam-Checker-Version: SpamAssassin 3.1.9 (2007-02-13) on intranet.asianux.com X-Spam-Level: X-Spam-Status: No, score=-100.8 required=5.0 tests=AWL,BAYES_00, RATWARE_GECKO_BUILD,USER_IN_WHITELIST autolearn=no version=3.1.9 Received: from [10.1.0.143] (unknown [219.143.36.82]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by intranet.asianux.com (Postfix) with ESMTP id 983FB184020C; Tue, 6 Nov 2012 09:12:35 +0800 (CST) Message-ID: <50986442.80009@asianux.com> Date: Tue, 06 Nov 2012 09:13:38 +0800 From: Chen Gang User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120911 Thunderbird/15.0.1 MIME-Version: 1.0 To: David Miller , kuznet@ms2.inr.ac.ru, jmorris@namei.org, yoshfuji@linux-ipv6.org, kaber@trash.net CC: netdev Subject: [PATCH] net: ipv6: change %8s to %s for seq_printf of if6_seq_stop References: <5097A030.5030209@asianux.com> In-Reply-To: <5097A030.5030209@asianux.com> X-Forwarded-Message-Id: <5097A030.5030209@asianux.com> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org the length of ifp->idev->dev->name is 16 (IFNAMSIZ) in seq_printf, it is not suitable to use %8s for ifp->idev->dev->name. so change it to %s, since each line has not been solid any more. Signed-off-by: Chen Gang --- net/ipv6/addrconf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ifp->prefix_len, diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index 8f0b12a..9f728a8 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c @@ -3281,7 +3281,7 @@ static void if6_seq_stop(struct seq_file *seq, void *v) static int if6_seq_show(struct seq_file *seq, void *v) { struct inet6_ifaddr *ifp = (struct inet6_ifaddr *)v; - seq_printf(seq, "%pi6 %02x %02x %02x %02x %8s\n", + seq_printf(seq, "%pi6 %02x %02x %02x %02x %s\n", &ifp->addr, ifp->idev->dev->ifindex,