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

Commit 0c73d324 authored by Suneesh Sasikumar's avatar Suneesh Sasikumar
Browse files

BroadcastRadio/convert.cpp: fix compiler warning

```
warning: format specifies type 'int' but the argument has type...
```

Change-Id: Ie5139f457e3387cc2fa3c36600f87c24e6f860ca
parent 6ffd1b4f
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -433,7 +433,7 @@ static JavaRef<jobject> BandDescriptorFromHal(JNIEnv *env, const V1_0::BandConfi
                gjni.AmBandDescriptor.clazz, gjni.AmBandDescriptor.cstor,
                region, config.type, config.lowerLimit, config.upperLimit, spacing, am.stereo));
    } else {
        ALOGE("Unsupported band type: %d", config.type);
        ALOGE("Unsupported band type: %d", static_cast<int>(config.type));
        return nullptr;
    }
}
@@ -451,7 +451,7 @@ JavaRef<jobject> BandConfigFromHal(JNIEnv *env, const V1_0::BandConfig &config,
        return make_javaref(env, env->NewObject(
                gjni.AmBandConfig.clazz, gjni.AmBandConfig.cstor, descriptor.get()));
    } else {
        ALOGE("Unsupported band type: %d", config.type);
        ALOGE("Unsupported band type: %d", static_cast<int>(config.type));
        return nullptr;
    }
}
@@ -539,9 +539,9 @@ JavaRef<jobject> MetadataFromHal(JNIEnv *env, const hidl_vec<V1_0::MetaData> &me
                        item.clockValue.timezoneOffsetInMinutes);
                break;
            default:
                ALOGW("invalid metadata type %d", item.type);
                ALOGW("invalid metadata type %d", static_cast<int>(item.type));
        }
        ALOGE_IF(status != 0, "Failed inserting metadata %d (of type %d)", key, item.type);
        ALOGE_IF(status != 0, "Failed inserting metadata %d (of type %d)", key, static_cast<int>(item.type));
    }

    return jMetadata;