From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] mtest: Fix end address of increment/decrement test
Date: Thu, 20 May 2010 20:43:30 +0200 [thread overview]
Message-ID: <20100520184330.5EE3CE67644@gemini.denx.de> (raw)
In-Reply-To: <1274375283-13004-1-git-send-email-ptyser@xes-inc.com>
Dear Peter Tyser,
In message <1274375283-13004-1-git-send-email-ptyser@xes-inc.com> you wrote:
>
> The incrememt/decrement test has an off-by-one error which results in an
> extra 4 bytes being tested past the specified end address. For
> instance, when running "mtest 0x1000 0x2000", the bytes 0x2000-0x2003
> would be tested which is counterintuitive and at odds with the end
> address calculation of other U-Boot memory tests.
I disagree. I understand your reasoning, but actually it has always
been the case that commands that take an address reagion specify as
end address the last address to be used, not oni behind the range.
You may not like this, but that's how it has been implemented > 10
years ago, and many people are trained on this behaviour. See for
example the flash erase command, wehre you will type something like
=> erase 40040000 4007FFFF
Here, like in other places, we really use the end address.
So for the sake of consisteny I tend to reject your patch.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
A Perl script is correct if it's halfway readable and gets the job
done before your boss fires you.
- L. Wall & R. L. Schwartz, _Programming Perl_
next prev parent reply other threads:[~2010-05-20 18:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-20 17:08 [U-Boot] [PATCH] mtest: Fix end address of increment/decrement test Peter Tyser
2010-05-20 18:43 ` Wolfgang Denk [this message]
2010-05-20 19:07 ` Peter Tyser
2010-05-20 19:44 ` Wolfgang Denk
2010-05-20 20:11 ` Peter Tyser
2010-05-20 20:32 ` Wolfgang Denk
2010-05-20 22:00 ` Peter Tyser
2010-05-20 22:07 ` Wolfgang Denk
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=20100520184330.5EE3CE67644@gemini.denx.de \
--to=wd@denx.de \
--cc=u-boot@lists.denx.de \
/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