cmd_mem: cleanups, catch bad usage
authorPavel Machek <pavel@denx.de>
Wed, 1 Apr 2015 11:50:41 +0000 (13:50 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 7 Apr 2015 12:41:10 +0000 (08:41 -0400)
commite37f1eb45c9f7da7e3463a27f2c2020fc35604b7
tree317740a30eaf00fb0c135e1c761ee208e6466a95
parent8f6e18385a5afd9aa6d63e5ea3f7658193087851
cmd_mem: cleanups, catch bad usage

Currently, memtest will silently accept bad data. Perform error
checking on user intput.

Signed-off-by: Pavel Machek <pavel@denx.de>
common/cmd_mem.c