@@ -184,19 +184,19 @@ EmbeddedAssemblies::verify_assembly_store_and_set_info (void *data_start, const
184184 if (header->magic != ASSEMBLY_STORE_MAGIC) {
185185 Helpers::abort_application (
186186 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)
190190 )
191191 );
192192 }
193193
194194 if (header->version != ASSEMBLY_STORE_FORMAT_VERSION) {
195195 Helpers::abort_application (
196196 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) ,
200200 header->version ,
201201 ASSEMBLY_STORE_FORMAT_VERSION
202202 )
@@ -269,10 +269,9 @@ EmbeddedAssemblies::zip_load_assembly_store_entries (std::span<uint8_t> const& b
269269 load_embedded_assembly_store ();
270270 log_debug (LOG_ASSEMBLY, " Looking for DSOs in APK" );
271271 } 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);
273273 }
274274
275- log_debug (LOG_ASSEMBLY, " Looking for assembly stores in APK ('{}')" , assembly_store_file_path.data ());
276275 for (size_t i = 0uz; i < num_entries; i++) {
277276 if (all_required_zip_entries_found ()) {
278277 need_to_scan_more_apks = false ;
@@ -338,9 +337,9 @@ EmbeddedAssemblies::zip_load_entries (int fd, const char *apk_name, [[maybe_unus
338337 );
339338 }
340339
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);
344343
345344 off_t retval = ::lseek (fd, static_cast <off_t >(cd_offset), SEEK_SET);
346345 if (retval < 0 ) [[unlikely]] {
0 commit comments