Fix format string for Modular DRM for MediaPlayer
Bug: 34559906
Test: Manual through the test app
Change-Id: I3cf239b0e4b25f5a5040f3f2394fc17eff55123c
diff --git a/media/libmediaplayerservice/nuplayer/NuPlayerDrm.cpp b/media/libmediaplayerservice/nuplayer/NuPlayerDrm.cpp
index cb9a5f8..ce6cedc 100644
--- a/media/libmediaplayerservice/nuplayer/NuPlayerDrm.cpp
+++ b/media/libmediaplayerservice/nuplayer/NuPlayerDrm.cpp
@@ -331,7 +331,7 @@
size_t keysize;
if (meta->findData(kKeyCryptoKey, &type, &key, &keysize)) {
if (keysize != kBlockSize) {
- ALOGE("getSampleCryptoInfo Keys must be %zu bytes in length: %zu",
+ ALOGE("getSampleCryptoInfo Keys must be %d bytes in length: %zu",
kBlockSize, keysize);
// Keys must be 16 bytes in length.
return NULL;
@@ -342,7 +342,7 @@
size_t ivsize;
if (meta->findData(kKeyCryptoIV, &type, &iv, &ivsize)) {
if (ivsize != kBlockSize) {
- ALOGE("getSampleCryptoInfo IV must be %zu bytes in length: %zu",
+ ALOGE("getSampleCryptoInfo IV must be %d bytes in length: %zu",
kBlockSize, ivsize);
// IVs must be 16 bytes in length.
return NULL;