mirror of
https://xff.cz/git/u-boot/
synced 2025-10-22 10:31:56 +02:00
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>
This commit is contained in:
committed by
Wolfgang Denk
parent
c750d2e669
commit
5bd7fe9aeb
@@ -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"
|
||||
|
Reference in New Issue
Block a user