From: Andrew Morton <akpm@osdl.org>
To: BlaisorBlade <blaisorblade_spam@yahoo.it>
Cc: agk@redhat.com, neilb@cse.unsw.edu.au, linux-kernel@vger.kernel.org
Subject: Re: [patch 1/1] dm: fix printk errors about whether %lu/%Lu is right for sector_t - revised
Date: Mon, 25 Oct 2004 14:46:28 -0700 [thread overview]
Message-ID: <20041025144628.5944df19.akpm@osdl.org> (raw)
In-Reply-To: <200410252255.08217.blaisorblade_spam@yahoo.it>
BlaisorBlade <blaisorblade_spam@yahoo.it> wrote:
>
> > I'd much prefer that you simply remove SECTOR_FORMAT completely.
>
> Impossible - doing a scanf and then copying the value is much uglier.
Put this in ll_rw_blk.c:
/*
* Parse an ascii decimal number into a sector_t. Return 1 on success
*/
int str_to_sector_t(const char *str, sector_t *sector)
{
unsigned long long val;
int ret;
ret = sscanf(str, "%llu", &val);
if (ret == 1)
*sector = val;
return ret;
}
EXPORT_SYMBOL(str_to_sector_t);
next prev parent reply other threads:[~2004-10-25 21:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-21 22:45 blaisorblade_spam
2004-10-22 9:53 ` Andrew Morton
2004-10-25 20:55 ` BlaisorBlade
2004-10-25 21:46 ` Andrew Morton [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-10-19 22:46 blaisorblade_spam
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=20041025144628.5944df19.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=agk@redhat.com \
--cc=blaisorblade_spam@yahoo.it \
--cc=linux-kernel@vger.kernel.org \
--cc=neilb@cse.unsw.edu.au \
/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
all inboxes | Powered by JetHome®