Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 871bd787 authored by David Ng's avatar David Ng Committed by Linux Build Service Account
Browse files

CameraMetadata: Fix log format string

serviceSpecificErrorCode() returns an int, not a string;
fix the log format string to "%d" from "%s".

Change-Id: Idc753d69892d1937ed417da496c8be0ccb9836ba
parent 8dea83be
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -923,9 +923,9 @@ static jint CameraMetadata_setupGlobalVendorTagDescriptor(JNIEnv *env, jobject t
        VendorTagDescriptor::clearGlobalVendorTagDescriptor();
        return OK;
    } else if (!res.isOk()) {
        VendorTagDescriptor::clearGlobalVendorTagDescriptor();
        ALOGE("%s: Failed to setup vendor tag descriptors: %s",
                __FUNCTION__, res.toString8().string());
        ALOGE("%s: Failed to setup vendor tag descriptors: %d: %s",
                __FUNCTION__, res.serviceSpecificErrorCode(),
                res.toString8().string());
        return res.serviceSpecificErrorCode();
    }