libhwjpeg: resolve compilation errors
[GitHub/LineageOS/android_hardware_samsung_slsi_exynos.git] / libhwjpeg / AppMarkerWriter.cpp
index 7e18ab3be2cf1bc26f91c1b8ced8ec325ad42b4c..b32f3367238d866bac43dcd1a89c41ee169da9a0 100644 (file)
@@ -238,7 +238,7 @@ void CAppMarkerWriter::PrepareAppWriter(char *base, exif_attribute_t *exif, debu
 
             len = debug->debugSize[appid];
             if ((len == 0) || (len > (JPEG_MAX_SEGMENT_SIZE - JPEG_SEGMENT_LENFIELD_SIZE))) {
-                ALOGE("Invalid APP%d segment size, %zu bytes", appid, len);
+                ALOGE("Invalid APP%d segment size, %u bytes", appid, len);
                 return;
             }
 
@@ -260,7 +260,7 @@ void CAppMarkerWriter::PrepareAppWriter(char *base, exif_attribute_t *exif, debu
     //   |                                                              |
     //  SOI                                                           DHTofMain
 
-    ALOGD("APP1: %zu bytes(ThumbMax %zu)", m_szApp1, m_szMaxThumbSize);
+    ALOGD("APP1: %hu bytes(ThumbMax %zu)", m_szApp1, m_szMaxThumbSize);
 }
 
 #define APPMARKLEN (JPEG_MARKER_SIZE + JPEG_SEGMENT_LENFIELD_SIZE)