Re: [PATCH] tools: fw_env: Fix warning when reading too little

2020-06-03 Thread Tom Rini
On Thu, May 28, 2020 at 05:54:45PM +0200, Harald Seiler wrote: > When using CONFIG_ENV_IS_IN_FAT and the config-file specifies a size > larger than what U-Boot wrote into the env-file, a confusing error > message is shown: > > $ fw_printenv > Read error on /boot/uboot.env: Success > > Fi

[PATCH] tools: fw_env: Fix warning when reading too little

2020-05-28 Thread Harald Seiler
When using CONFIG_ENV_IS_IN_FAT and the config-file specifies a size larger than what U-Boot wrote into the env-file, a confusing error message is shown: $ fw_printenv Read error on /boot/uboot.env: Success Fix this by showing a different error message when read returns too little data.