summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMatthias Fuchs <matthias.fuchs@esd-electronics.com>2007-09-11 17:04:00 +0200
committerWolfgang Denk <wd@denx.de>2007-09-15 21:38:38 +0200
commit5bd7fe9aeb76906371f40b8fd07613f10922e3e7 (patch)
tree017950cd8c366e46f23b2f9253d470f40ce1b61a /common
parentc750d2e6692a000a82f29de7bf24e3dc21239161 (diff)
downloadu-boot-imx-5bd7fe9aeb76906371f40b8fd07613f10922e3e7.zip
u-boot-imx-5bd7fe9aeb76906371f40b8fd07613f10922e3e7.tar.gz
u-boot-imx-5bd7fe9aeb76906371f40b8fd07613f10922e3e7.tar.bz2
Fix do_div() usage in nand process output
Fix usage of do_div() in nand erase|read|write process output. The last patch to nand_util.c introduced do_div() instead of libgcc's implementation. But do_div() returns the quotient in its first macro parameter and not as result. Signed-off-by: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
Diffstat (limited to 'common')
-rw-r--r--common/cmd_nand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_nand.c b/common/cmd_nand.c
index aeb76e5..1fdd7a6 100644
--- a/common/cmd_nand.c
+++ b/common/cmd_nand.c
@@ -456,7 +456,7 @@ U_BOOT_CMD(nand, 5, 1, do_nand,
"info - show available NAND devices\n"
"nand device [dev] - show or set current device\n"
"nand read[.jffs2] - addr off|partition size\n"
- "nand write[.jffs2] - addr off|partiton size - read/write `size' bytes starting\n"
+ "nand write[.jffs2] - addr off|partition size - read/write `size' bytes starting\n"
" at offset `off' to/from memory address `addr'\n"
"nand erase [clean] [off size] - erase `size' bytes from\n"
" offset `off' (entire device if not specified)\n"