From: Eric Blake <eblake@redhat.com>
To: lu.zhipeng@zte.com.cn, mdroth@linux.vnet.ibm.com
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v4] qga: Add support network interfacestatistics in
Date: Wed, 26 Apr 2017 08:24:34 -0500 [thread overview]
Message-ID: <dccb2383-f94f-63e7-4319-4222e435c83b@redhat.com> (raw)
In-Reply-To: <201704260920380633515@zte.com.cn>
[-- Attachment #1: Type: text/plain, Size: 1199 bytes --]
On 04/25/2017 08:20 PM, lu.zhipeng@zte.com.cn wrote:
> > + */> + colon = strchr(line, ':')> + if (!colon) {> + continue> + }> + *colon = '\0'> + if (colon - path_len >= line && strcmp(colon - path_len, path) == 0) {colon - path_len > line would imply the current line isn't a matcheither, so i think that can be tightened to colon - path_len == line.
Ouch. Your mailer doesn't know how to quote properly, rendering your
email illegible.
>
> ------------
>
> The text reading from /proc/net/dev/ is aligned to the right. so i think it should be colon - path_len >= line
<snip>
> 发件人: <mdroth@linux.vnet.ibm.com>
> 收件人:芦志朋10108272
> 抄送人:芦志朋10108272 <qemu-devel@nongnu.org>
> 日 期 :2017年04月26日 05:17
> 主 题 :Re: [Qemu-devel] [PATCH v4] qga: Add support network interfacestatistics in
>
Also, we prefer that you do not top-post on technical lists, but instead
reply inline to the relevant portions of the email.
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
prev parent reply other threads:[~2017-04-26 13:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-26 1:20 [Qemu-devel] [PATCH v4] qga: Add support network interfacestatistics in lu.zhipeng
2017-04-26 13:24 ` Eric Blake [this message]
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=dccb2383-f94f-63e7-4319-4222e435c83b@redhat.com \
--to=eblake@redhat.com \
--cc=lu.zhipeng@zte.com.cn \
--cc=mdroth@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).