Skip to content

Commit

Permalink
vc_service: Fix enum types to string lookup
Browse files Browse the repository at this point in the history
Success and error had same values but retry was different (1 vs -2)
Only affects logging string, so not critical but fixes a warning
  • Loading branch information
popcornmix committed Aug 13, 2020
1 parent 5828e5b commit f73fca0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions interface/vmcs_host/vc_service_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ VC_SERVICE_VCHI_STATUS_T vchi2service_status(int32_t x) {
const char* vchi2service_status_string(VC_SERVICE_VCHI_STATUS_T status) {
const char* string = "";
switch(status) {
case VCHIQ_SUCCESS:
case VC_SERVICE_VCHI_SUCCESS:
string = "success"; break;
case VCHIQ_ERROR:
case VC_SERVICE_VCHI_VCHIQ_ERROR:
string = "vchiq error"; break;
case VCHIQ_RETRY:
case VC_SERVICE_VCHI_RETRY:
string = "retry"; break;
default:
string = "unknown";
Expand Down

0 comments on commit f73fca0

Please sign in to comment.