@@ -184,19 +184,19 @@ EmbeddedAssemblies::verify_assembly_store_and_set_info (void *data_start, const
184
184
if (header->magic != ASSEMBLY_STORE_MAGIC) {
185
185
Helpers::abort_application (
186
186
LOG_ASSEMBLY,
187
- Util::monodroid_strdup_printf (
188
- " Assembly store '%s ' is not a valid .NET for Android assembly store file" ,
189
- name
187
+ std::format (
188
+ " Assembly store '{} ' is not a valid .NET for Android assembly store file" ,
189
+ optional_string ( name)
190
190
)
191
191
);
192
192
}
193
193
194
194
if (header->version != ASSEMBLY_STORE_FORMAT_VERSION) {
195
195
Helpers::abort_application (
196
196
LOG_ASSEMBLY,
197
- Util::monodroid_strdup_printf (
198
- " Assembly store '%s ' uses format version 0x%x , instead of the expected 0x%x " ,
199
- name,
197
+ std::format (
198
+ " Assembly store '{} ' uses format version 0x{:x} , instead of the expected 0x{:x} " ,
199
+ optional_string ( name) ,
200
200
header->version ,
201
201
ASSEMBLY_STORE_FORMAT_VERSION
202
202
)
@@ -269,10 +269,9 @@ EmbeddedAssemblies::zip_load_assembly_store_entries (std::span<uint8_t> const& b
269
269
load_embedded_assembly_store ();
270
270
log_debug (LOG_ASSEMBLY, " Looking for DSOs in APK" );
271
271
} else {
272
- log_debug (LOG_ASSEMBLY, " Looking for assembly store ('%s ') and DSOs in APK" , assembly_store_file_path. data () );
272
+ log_debug (LOG_ASSEMBLY, " Looking for assembly store ('{} ') and DSOs in APK" , assembly_store_file_path);
273
273
}
274
274
275
- log_debug (LOG_ASSEMBLY, " Looking for assembly stores in APK ('{}')" , assembly_store_file_path.data ());
276
275
for (size_t i = 0uz; i < num_entries; i++) {
277
276
if (all_required_zip_entries_found ()) {
278
277
need_to_scan_more_apks = false ;
@@ -338,9 +337,9 @@ EmbeddedAssemblies::zip_load_entries (int fd, const char *apk_name, [[maybe_unus
338
337
);
339
338
}
340
339
341
- log_debug (LOG_ASSEMBLY, " Central directory offset: %u " , cd_offset);
342
- log_debug (LOG_ASSEMBLY, " Central directory size: %u " , cd_size);
343
- log_debug (LOG_ASSEMBLY, " Central directory entries: %u " , cd_entries);
340
+ log_debug (LOG_ASSEMBLY, " Central directory offset: {} " , cd_offset);
341
+ log_debug (LOG_ASSEMBLY, " Central directory size: {} " , cd_size);
342
+ log_debug (LOG_ASSEMBLY, " Central directory entries: {} " , cd_entries);
344
343
345
344
off_t retval = ::lseek (fd, static_cast <off_t >(cd_offset), SEEK_SET);
346
345
if (retval < 0 ) [[unlikely]] {
0 commit comments