diff options
Diffstat (limited to 'extra/usb_updater/gsctool.c')
-rw-r--r-- | extra/usb_updater/gsctool.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/extra/usb_updater/gsctool.c b/extra/usb_updater/gsctool.c index 72cb576685..fed12126df 100644 --- a/extra/usb_updater/gsctool.c +++ b/extra/usb_updater/gsctool.c @@ -2254,13 +2254,19 @@ static int process_get_apro_hash(struct transfer_descriptor *td) &response, &response_size); if (response_size == 1) { + printf("get hash rc: %d ", response[0]); switch (response[0]) { case ARCVE_NOT_PROGRAMMED: printf("AP RO hash unprogrammed\n"); return 0; + case ARCVE_FLASH_READ_FAILED: + printf("flash read failed\n"); + return 0; + case ARCVE_BOARD_ID_BLOCKED: + printf("board id blocked\n"); + return 0; default: - fprintf(stderr, "unexpected error %d %s\n", response[0], - desc); + fprintf(stderr, "unexpected error\n"); return update_error; } } else if (rv != VENDOR_RC_SUCCESS) { |