Fix -Wformat compiler warning
error: format specifies type 'int' but the argument has type 'ui::Dataspace' [-Werror,-Wformat]
91 | LOG_ALWAYS_FATAL("%s isTextureValid:%d dataspace:%d"
| ~~
92 | "\n\tGrBackendTexture: (%i x %i) hasMipmaps: %i isProtected: %i texType: %i"
93 | "\n\t\tGrGLTextureInfo: success: %i fTarget: %u fFormat: %u colorType %i",
94 | msg, tex.isValid(), dataspace, tex.width(), tex.height(), tex.hasMipmaps(),
| ^~~~~~~~~
| static_cast<int32_t>( )
Test: build with upstream Clang
Change-Id: I81868618064fbb189affb0f55c4e3ab94e78430b
diff --git a/libs/renderengine/skia/AutoBackendTexture.cpp b/libs/renderengine/skia/AutoBackendTexture.cpp
index cd1ac2b..92fe4c0 100644
--- a/libs/renderengine/skia/AutoBackendTexture.cpp
+++ b/libs/renderengine/skia/AutoBackendTexture.cpp
@@ -132,8 +132,8 @@
"\n\tGrBackendTexture: (%i x %i) hasMipmaps: %i isProtected: %i "
"texType: %i\n\t\tGrGLTextureInfo: success: %i fTarget: %u fFormat: %u"
" colorType %i",
- msg, tex.isValid(), dataspace, tex.width(), tex.height(),
- tex.hasMipmaps(), tex.isProtected(),
+ msg, tex.isValid(), static_cast<int32_t>(dataspace), tex.width(),
+ tex.height(), tex.hasMipmaps(), tex.isProtected(),
static_cast<int>(tex.textureType()), retrievedTextureInfo,
textureInfo.fTarget, textureInfo.fFormat, colorType);
break;