From: Jan Stancek <jstancek@redhat.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH v2] mem/hugetlb: shift an empty region to use in hugemmap02.c
Date: Tue, 13 Oct 2015 07:11:41 -0400 (EDT) [thread overview]
Message-ID: <445482575.29681653.1444734701609.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <1102055073.29673944.1444733686476.JavaMail.zimbra@redhat.com>
----- Original Message -----
> From: "Jan Stancek" <jstancek@redhat.com>
> To: "Li Wang" <liwang@redhat.com>, "Cyril Hrubis" <chrubis@suse.cz>
> Cc: ltp@lists.linux.it
> Sent: Tuesday, 13 October, 2015 12:54:46 PM
> Subject: Re: [LTP] [PATCH v2] mem/hugetlb: shift an empty region to use in hugemmap02.c
>
> The approach above should work, but it also stores data to buf,
> that we don't care about. You could do fscanf + "while (fgetc(f) != '\n');"
> to forward to next line, if you want to avoid using buf.
OK, I take that back, Cyril's version is prettier:
>
> ret = fscanf(f, "%lx-%lx %*[^\n]\n", &start, &end);
prev parent reply other threads:[~2015-10-13 11:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-12 10:53 [LTP] [PATCH v2] mem/hugetlb: shift an empty region to use in hugemmap02.c Li Wang
2015-10-12 18:29 ` Cyril Hrubis
2015-10-13 5:39 ` Li Wang
2015-10-13 10:15 ` Li Wang
2015-10-13 10:53 ` Cyril Hrubis
2015-10-13 13:39 ` Li Wang
2015-10-13 10:54 ` Jan Stancek
2015-10-13 11:11 ` Jan Stancek [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=445482575.29681653.1444734701609.JavaMail.zimbra@redhat.com \
--to=jstancek@redhat.com \
--cc=ltp@lists.linux.it \
/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