Skip to content

Commit 640fbf9

Browse files
authored
[native] Fix printf format for the library name hash (#9424)
Hash is always 64-bit, even on 32-bit platforms, use the correct format (`%llx`) to fix incorrect value conversion on 32-bit targets.
1 parent 9cddd05 commit 640fbf9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/native/monodroid/embedded-assemblies-zip.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ EmbeddedAssemblies::zip_load_assembly_store_entries (std::vector<uint8_t> const&
293293
apk_entry->offset = state.data_offset;
294294
apk_entry->fd = state.file_fd;
295295

296-
log_debug (LOG_ASSEMBLY, "Found a shared library entry %s (index: %u; name: %s; hash: 0x%zx; apk offset: %u)", entry_name.get (), number_of_zip_dso_entries, name, apk_entry->name_hash, apk_entry->offset);
296+
log_debug (LOG_ASSEMBLY, "Found a shared library entry %s (index: %u; name: %s; hash: 0x%llx; apk offset: %u)", entry_name.get (), number_of_zip_dso_entries, name, apk_entry->name_hash, apk_entry->offset);
297297
number_of_zip_dso_entries++;
298298
}
299299
}

0 commit comments

Comments
 (0)