From: samuel@Update.UU.SE (Samuel ]slund)
To: linux-mtd@lists.infradead.org
Subject: Bad typecast in flash_eraseall ?
Date: Mon, 7 Aug 2006 12:42:32 +0200 [thread overview]
Message-ID: <20060807104232.GA27930@Update.UU.SE> (raw)
Hi,
I recently dovnloaded the mtd-utils-1.0.0.tar.gz from www.infradead.org.
When running "flash_eraseall" on a Micrel ks8695p I get some wierd output:
/ # flash_eraseall /dev/mtd1
Erasing 64 Kibyte @ 30000 -- 4294901765 % complete.
When I moved the typecast (unsigned long long)
at line 155 from before "erase.start" to before "100" :
("\rErasing %d Kibyte @ %x -- %2llu %% complete.",
meminfo.erasesize / 1024, erase.start,
erase.start *
(unsigned long long) 100 / meminfo.size);
the output became correct:
/ # flash_eraseall /dev/mtd1
Erasing 64 Kibyte @ 100000 -- 26 % complete.
Seems like a bug, thought you might want to know.
//Samuel
PS.
Sorry if this has been mentioned before, I did google a bit on the
list archives but the search interface is not very friendly.
DS.
reply other threads:[~2006-08-07 10:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20060807104232.GA27930@Update.UU.SE \
--to=samuel@update.uu.se \
--cc=linux-mtd@lists.infradead.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