From: Chen Gang <gang.chen@asianux.com>
To: Shan Wei <shanwei88@gmail.com>
Cc: Eric Dumazet <eric.dumazet@gmail.com>,
David Miller <davem@davemloft.net>,
netdev <netdev@vger.kernel.org>
Subject: Re: Fwd: Re: [PATCH] net: ipv6: change %8s to %s for rt->dst.dev->name in seq_printf of rt6_info_route
Date: Tue, 27 Nov 2012 13:35:59 +0800 [thread overview]
Message-ID: <50B4513F.8090804@asianux.com> (raw)
In-Reply-To: <50B447F3.2090806@gmail.com>
于 2012年11月27日 12:56, Shan Wei 写道:
> Chen Gang said, at 2012/11/27 12:18:
>>>
>>>>
>>>> for the format of information which seq_printf output:
>>>> it is not belong to OS API level for outside (at least, for current case, it is true).
>>>> so we need not keep 'compatible' of it, so %16s is not necessary.
>>>
>>> Can you explain If we don't change to %s, what will happen?
>>>
>>
>> for outside, nothing will happen.
>>
>> so it is not for correctness, it is only for "keep source code simple and clear".
>
> So, it's a clean-up type patch which is just for developer,
> but with the change of /proc interface which is for user.
> user is first, so let us end this thread unless you have necessary reasons to do it.
>
1) it is not change the /proc interface.
a) both %8s and %s do not change the output interface format (including contents, topology, separator mark, space redundancy).
b) it is belong to 'User Experience', not belong to os api.
c) do you agree with what I say above ?
2) I think:
one of the differences between system service and user interactive program are:
for system service (including kernel): "clean-up" is more important than "UE".
for user interactive program: "UE" is more important than "Clean-up".
maybe, it is for ideal world (or maybe it is only in theory).
(also maybe what I said above is incorrect)
3) so all together:
I can understand if it is not integrated into main branch.
it will be better to continue discussing it in ideal world (or in theory), I think it is valuable for learning with each other.
:-)
thanks.
gchen.
> Thanks
> Shan Wei
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
--
Chen Gang
Asianux Corporation
next prev parent reply other threads:[~2012-11-27 5:35 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-22 2:52 [PATCH] net: ipv6: change %8s to %s for rt->dst.dev->name in seq_printf of rt6_info_route Chen Gang
2012-11-22 5:28 ` Shan Wei
2012-11-22 8:37 ` Chen Gang
2012-11-23 3:35 ` Fwd: " Chen Gang
2012-11-27 3:17 ` Shan Wei
2012-11-27 4:18 ` Chen Gang
2012-11-27 4:45 ` Chen Gang
2012-11-27 5:40 ` Chen Gang
2012-11-27 5:52 ` Chen Gang
2012-11-28 5:54 ` Chen Gang
2012-11-27 4:56 ` Shan Wei
2012-11-27 5:35 ` Chen Gang [this message]
2012-11-29 1:43 ` [Consult] excuse me: sorry for the negative effects which I made Chen Gang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50B4513F.8090804@asianux.com \
--to=gang.chen@asianux.com \
--cc=davem@davemloft.net \
--cc=eric.dumazet@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=shanwei88@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.