From: "\"Zhou, Wenjian/周文剑\"" <zhouwj-fnst@cn.fujitsu.com>
To: Atsushi Kumagai <kumagai-atsushi@mxc.nes.nec.co.jp>
Cc: "kexec@lists.infradead.org" <kexec@lists.infradead.org>
Subject: Re: [PATCH V3 2/5] Add tools for reading and writing from splitblock table
Date: Wed, 5 Nov 2014 18:31:44 +0800 [thread overview]
Message-ID: <5459FC90.6070406@cn.fujitsu.com> (raw)
In-Reply-To: <0910DD04CBD6DE4193FCF86B9C00BE9701D647BB@BPXM01GP.gisp.nec.co.jp>
On 11/05/2014 12:18 PM, Atsushi Kumagai wrote:
>> +unsigned long long
>> >+read_from_splitblock_table(char *entry)
>> >+{
>> >+ unsigned long long value = 0;
>> >+ int i;
>> >+
>> >+ for (i = splitblock->entry_size; i> 0; i--) {
>> >+ value = value<< BITPERBYTE;
>> >+ value += *(entry + i - 1)& 0xff;
>> >+ }
> Did you forget to reflect the HATAYAMA-san's comment ?
>
I think it is needed.
For example:
if *(entry + i - 1) == 0xfa
without & 0xff:
it will turn to: value += 0xfffffffffffffffa
with & 0xff:
it will be: value += 0xfffffffffffffffa & 0xff
Thanks
Zhou Wenjian
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
next prev parent reply other threads:[~2014-11-05 10:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-30 9:45 [PATCH V3 0/5] makedumpfile: --split: assign fair I/O workloads in appropriate time Zhou Wenjian
2014-10-30 9:45 ` [PATCH V3 1/5] Add support for splitblock Zhou Wenjian
2014-10-30 9:45 ` [PATCH V3 2/5] Add tools for reading and writing from splitblock table Zhou Wenjian
2014-11-05 4:18 ` Atsushi Kumagai
2014-11-05 10:31 ` "Zhou, Wenjian/周文剑" [this message]
2014-11-06 4:20 ` Atsushi Kumagai
2014-10-30 9:45 ` [PATCH V3 3/5] Add module of generating table Zhou Wenjian
2014-11-05 4:18 ` Atsushi Kumagai
2014-10-30 9:45 ` [PATCH V3 4/5] Add module of calculating start_pfn and end_pfn in each dumpfile Zhou Wenjian
2014-10-30 9:45 ` [PATCH V3 5/5] Add support for --splitblock-size Zhou Wenjian
2014-11-04 1:51 ` [PATCH V3 0/5] makedumpfile: --split: assign fair I/O workloads in appropriate time "Zhou, Wenjian/周文剑"
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=5459FC90.6070406@cn.fujitsu.com \
--to=zhouwj-fnst@cn.fujitsu.com \
--cc=kexec@lists.infradead.org \
--cc=kumagai-atsushi@mxc.nes.nec.co.jp \
/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.