u-boot-brain/drivers/fastboot
Eugeniu Rosca a40297d741 fastboot: Improve error reporting on 'getvar partition-{size, type}'
Currently U-Boot reports the same error message in all below cases:
[A] host> fastboot getvar partition-type
[B] host> fastboot getvar partition-size
[C] host> fastboot getvar partition-type:
[D] host> fastboot getvar partition-size:
[E] host> fastboot getvar partition-type:<invalid-part>
[F] host> fastboot getvar partition-size:<invalid-part>

The message looks like:
host> fastboot getvar partition-size:
getvar:partition-size: FAILED (remote: partition not found)
Finished. Total time: 0.003s

Be more user friendly and output:
 - "partition not given" for [A-D]
 - "partition not found" for [E-F]

Fixes: f73a7df984 ("net: fastboot: Merge AOSP UDP fastboot")
Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com>
Acked-by: Alex Kiernan <alex.kiernan@gmail.com>
2019-04-21 10:26:51 +02:00
..
fb_command.c fastboot: Add support for 'oem format' command 2018-05-30 11:59:21 +02:00
fb_common.c fastboot: common: fix default fastboot_boot on 64-bit 2019-03-16 13:29:43 +01:00
fb_getvar.c fastboot: getvar: correct/rename "has_slot" to "has-slot" 2019-04-21 10:26:51 +02:00
fb_mmc.c fastboot: Improve error reporting on 'getvar partition-{size, type}' 2019-04-21 10:26:51 +02:00
fb_nand.c net: fastboot: Merge AOSP UDP fastboot 2018-05-30 11:59:21 +02:00
Kconfig Kconfig: sandbox: enable cmd_avb and dependencies 2018-10-07 13:34:19 -04:00
Makefile drivers: cosmetic: Convert SPDX license tags to Linux Kernel style 2018-10-28 09:26:39 -04:00