diff --git a/trusty/apploader/apploader.cpp b/trusty/apploader/apploader.cpp index 4aca375fa..e4d9b390c 100644 --- a/trusty/apploader/apploader.cpp +++ b/trusty/apploader/apploader.cpp @@ -220,6 +220,9 @@ static ssize_t read_response(int tipc_fd) { case APPLOADER_ERR_INTERNAL: LOG(ERROR) << "Error: internal apploader error"; break; + case APPLOADER_ERR_INVALID_VERSION: + LOG(ERROR) << "Error: invalid application version"; + break; default: LOG(ERROR) << "Unrecognized error: " << resp.error; break; diff --git a/trusty/apploader/apploader_ipc.h b/trusty/apploader/apploader_ipc.h index d8c915eed..6cda7c10e 100644 --- a/trusty/apploader/apploader_ipc.h +++ b/trusty/apploader/apploader_ipc.h @@ -44,6 +44,7 @@ enum apploader_command : uint32_t { * @APPLOADER_ERR_ALREADY_EXISTS: application has already been loaded * @APPLOADER_ERR_INTERNAL: miscellaneous or internal apploader * error not covered by the above + * @APPLOADER_ERR_INVALID_VERSION: invalid application version */ enum apploader_error : uint32_t { APPLOADER_NO_ERROR = 0, @@ -54,6 +55,7 @@ enum apploader_error : uint32_t { APPLOADER_ERR_LOADING_FAILED, APPLOADER_ERR_ALREADY_EXISTS, APPLOADER_ERR_INTERNAL, + APPLOADER_ERR_INVALID_VERSION, }; /**