Skip to content
This repository was archived by the owner on Aug 27, 2025. It is now read-only.

Commit f73fca0

Browse files
committed
vc_service: Fix enum types to string lookup
Success and error had same values but retry was different (1 vs -2) Only affects logging string, so not critical but fixes a warning
1 parent 5828e5b commit f73fca0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

interface/vmcs_host/vc_service_common.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ VC_SERVICE_VCHI_STATUS_T vchi2service_status(int32_t x) {
4444
const char* vchi2service_status_string(VC_SERVICE_VCHI_STATUS_T status) {
4545
const char* string = "";
4646
switch(status) {
47-
case VCHIQ_SUCCESS:
47+
case VC_SERVICE_VCHI_SUCCESS:
4848
string = "success"; break;
49-
case VCHIQ_ERROR:
49+
case VC_SERVICE_VCHI_VCHIQ_ERROR:
5050
string = "vchiq error"; break;
51-
case VCHIQ_RETRY:
51+
case VC_SERVICE_VCHI_RETRY:
5252
string = "retry"; break;
5353
default:
5454
string = "unknown";

0 commit comments

Comments
 (0)