diff options
author | Stefan Roese <sr@denx.de> | 2011-03-14 14:34:21 +0100 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2011-03-21 10:02:16 +0100 |
commit | 7f5d8a4d8e0ef7aee08476f0a3b9eb40974efaee (patch) | |
tree | 9ea2d2bb6d71f222cc06481e5fae581ed4db5fcd /post/drivers/Makefile | |
parent | cc1dd33f273f8c96cbd7539b4a2d1d7aa12773cd (diff) | |
download | u-boot-imx-7f5d8a4d8e0ef7aee08476f0a3b9eb40974efaee.zip u-boot-imx-7f5d8a4d8e0ef7aee08476f0a3b9eb40974efaee.tar.gz u-boot-imx-7f5d8a4d8e0ef7aee08476f0a3b9eb40974efaee.tar.bz2 |
UBI: Fix error code handling in ubi commands
Some ubi commands returned negative error codes, resulting in
the following error message on the prompt:
"exit not allowed from main input shell."
Negative error codes are not allowed.
This patch now changes the UBI code to return positive error codes.
Additionally "better" error codes are used, for example "ENOMEM" when
no memory is available for the UBI volume creation any more.
Also the output of some commands is enhanced:
Before:
=> ubi read 100000 testvol 100000
Volume testvol found at volume id 0
read 1048576 bytes from volume 0 to 100000(buf address)
=> ubi write 100000 testvol 1000
Volume testvol found at volume id 0
After:
=> ubi read 100000 testvol 100000
Read 1048576 bytes from volume testvol to 00100000
=> ubi write 100000 testvol 1000
4096 bytes written to volume testvol
Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'post/drivers/Makefile')
0 files changed, 0 insertions, 0 deletions