@@ -79,7 +79,7 @@ Result<MmapDataLoader> MmapDataLoader::from(
7979 return Error::AccessFailed;
8080 }
8181 if ((page_size & ~(page_size - 1 )) != page_size) {
82- ET_LOG (Error, " Page size 0x%ld is not a power of 2" , page_size);
82+ ET_LOG (Error, " Page size 0x%lx is not a power of 2" , page_size);
8383 return Error::InvalidState;
8484 }
8585
@@ -211,7 +211,7 @@ Result<FreeableBuffer> MmapDataLoader::load(
211211 ET_CHECK_OR_RETURN_ERROR (
212212 pages != MAP_FAILED ,
213213 AccessFailed,
214- " Failed to map %s: mmap(..., size=%zd , ..., fd=%d, offset=0x%zx)" ,
214+ " Failed to map %s: mmap(..., size=%zu , ..., fd=%d, offset=0x%zx)" ,
215215 file_name_,
216216 range.size ,
217217 fd_,
@@ -224,7 +224,7 @@ Result<FreeableBuffer> MmapDataLoader::load(
224224 if (mlock_config_ == MlockConfig::UseMlockIgnoreErrors) {
225225 ET_LOG (
226226 Debug,
227- " Ignoring mlock error for file %s (off=0x%zd ): "
227+ " Ignoring mlock error for file %s (off=0x%zx ): "
228228 " mlock(%p, %zu) failed: %s (%d)" ,
229229 file_name_,
230230 offset,
@@ -235,7 +235,7 @@ Result<FreeableBuffer> MmapDataLoader::load(
235235 } else {
236236 ET_LOG (
237237 Error,
238- " File %s (off=0x%zd ): mlock(%p, %zu) failed: %s (%d)" ,
238+ " File %s (off=0x%zx ): mlock(%p, %zu) failed: %s (%d)" ,
239239 file_name_,
240240 offset,
241241 pages,
@@ -321,7 +321,7 @@ Error MmapDataLoader::load_into(
321321 ET_CHECK_OR_RETURN_ERROR (
322322 pages != MAP_FAILED ,
323323 AccessFailed,
324- " Failed to map %s: mmap(..., size=%zd , ..., fd=%d, offset=0x%zx)" ,
324+ " Failed to map %s: mmap(..., size=%zu , ..., fd=%d, offset=0x%zx)" ,
325325 file_name_,
326326 range.size ,
327327 fd_,
0 commit comments