@@ -29,7 +29,7 @@ auto AssemblyStore::get_assembly_data (AssemblyStoreSingleAssemblyRuntimeData co
29
29
#if defined (HAVE_LZ4) && defined (RELEASE)
30
30
auto header = reinterpret_cast <const CompressedAssemblyHeader*>(e.image_data );
31
31
if (header->magic == COMPRESSED_DATA_MAGIC) {
32
- log_debug (LOG_ASSEMBLY, " Decompressing assembly '{}' from the assembly store" , name);
32
+ log_debug (LOG_ASSEMBLY, " Decompressing assembly '{}' from the assembly store" sv , name);
33
33
34
34
if (FastTiming::enabled ()) [[unlikely]] {
35
35
internal_timing.start_event (TimingEventKind::AssemblyDecompression);
@@ -42,7 +42,7 @@ auto AssemblyStore::get_assembly_data (AssemblyStoreSingleAssemblyRuntimeData co
42
42
Helpers::abort_application (
43
43
LOG_ASSEMBLY,
44
44
std::format (
45
- " Invalid compressed assembly descriptor index {}" ,
45
+ " Invalid compressed assembly descriptor index {}" sv ,
46
46
header->descriptor_index
47
47
)
48
48
);
@@ -71,7 +71,7 @@ auto AssemblyStore::get_assembly_data (AssemblyStoreSingleAssemblyRuntimeData co
71
71
Helpers::abort_application (
72
72
LOG_ASSEMBLY,
73
73
std::format (
74
- " Invalid compressed assembly descriptor at {}: no data" ,
74
+ " Invalid compressed assembly descriptor at {}: no data" sv ,
75
75
header->descriptor_index
76
76
)
77
77
);
@@ -82,14 +82,14 @@ auto AssemblyStore::get_assembly_data (AssemblyStoreSingleAssemblyRuntimeData co
82
82
Helpers::abort_application (
83
83
LOG_ASSEMBLY,
84
84
std::format (
85
- " Compressed assembly '{}' is larger than when the application was built (expected at most {}, got {}). Assemblies don't grow just like that!" ,
85
+ " Compressed assembly '{}' is larger than when the application was built (expected at most {}, got {}). Assemblies don't grow just like that!" sv ,
86
86
name,
87
87
cad.uncompressed_file_size ,
88
88
header->uncompressed_length
89
89
)
90
90
);
91
91
} else {
92
- log_debug (LOG_ASSEMBLY, " Compressed assembly '{}' is smaller than when the application was built. Adjusting accordingly." , name);
92
+ log_debug (LOG_ASSEMBLY, " Compressed assembly '{}' is smaller than when the application was built. Adjusting accordingly." sv , name);
93
93
}
94
94
cad.uncompressed_file_size = header->uncompressed_length ;
95
95
}
@@ -101,7 +101,7 @@ auto AssemblyStore::get_assembly_data (AssemblyStoreSingleAssemblyRuntimeData co
101
101
Helpers::abort_application (
102
102
LOG_ASSEMBLY,
103
103
std::format (
104
- " Decompression of assembly {} failed with code {}" ,
104
+ " Decompression of assembly {} failed with code {}" sv ,
105
105
name,
106
106
ret
107
107
)
@@ -112,7 +112,7 @@ auto AssemblyStore::get_assembly_data (AssemblyStoreSingleAssemblyRuntimeData co
112
112
Helpers::abort_application (
113
113
LOG_ASSEMBLY,
114
114
std::format (
115
- " Decompression of assembly {} yielded a different size (expected {}, got {})" ,
115
+ " Decompression of assembly {} yielded a different size (expected {}, got {})" sv ,
116
116
name,
117
117
cad.uncompressed_file_size ,
118
118
static_cast <uint32_t >(ret)
@@ -130,12 +130,12 @@ auto AssemblyStore::get_assembly_data (AssemblyStoreSingleAssemblyRuntimeData co
130
130
} else
131
131
#endif // def HAVE_LZ4 && def RELEASE
132
132
{
133
- log_debug (LOG_ASSEMBLY, " Assembly '{}' is not compressed in the assembly store" , name);
133
+ log_debug (LOG_ASSEMBLY, " Assembly '{}' is not compressed in the assembly store" sv , name);
134
134
135
135
// HACK! START
136
136
// Currently, MAUI crashes when we return a pointer to read-only data, so we must copy
137
137
// the assembly data to a read-write area.
138
- log_debug (LOG_ASSEMBLY, " Copying assembly data to an r/w memory area" );
138
+ log_debug (LOG_ASSEMBLY, " Copying assembly data to an r/w memory area" sv );
139
139
140
140
if (FastTiming::enabled ()) [[unlikely]] {
141
141
internal_timing.start_event (TimingEventKind::AssemblyLoad);
@@ -176,29 +176,29 @@ auto AssemblyStore::find_assembly_store_entry (hash_t hash, const AssemblyStoreI
176
176
auto AssemblyStore::open_assembly (std::string_view const & name, int64_t &size) noexcept -> void*
177
177
{
178
178
hash_t name_hash = xxhash::hash (name.data (), name.length ());
179
- log_debug (LOG_ASSEMBLY, " AssemblyStore::open_assembly: looking for bundled name: '{}' (hash {:x})" , optional_string (name.data ()), name_hash);
179
+ log_debug (LOG_ASSEMBLY, " AssemblyStore::open_assembly: looking for bundled name: '{}' (hash {:x})" sv , optional_string (name.data ()), name_hash);
180
180
181
181
if constexpr (Constants::is_debug_build) {
182
182
// TODO: implement filesystem lookup here
183
183
184
184
// In fastdev mode we might not have any assembly store.
185
185
if (assembly_store_hashes == nullptr ) {
186
- log_warn (LOG_ASSEMBLY, " Assembly store not registered. Unable to look up assembly '{}'" , name);
186
+ log_warn (LOG_ASSEMBLY, " Assembly store not registered. Unable to look up assembly '{}'" sv , name);
187
187
return nullptr ;
188
188
}
189
189
}
190
190
191
191
const AssemblyStoreIndexEntry *hash_entry = find_assembly_store_entry (name_hash, assembly_store_hashes, assembly_store.index_entry_count );
192
192
if (hash_entry == nullptr ) {
193
- log_warn (LOG_ASSEMBLY, " Assembly '{}' (hash 0x{:x}) not found" , optional_string (name.data ()), name_hash);
193
+ log_warn (LOG_ASSEMBLY, " Assembly '{}' (hash 0x{:x}) not found" sv , optional_string (name.data ()), name_hash);
194
194
return nullptr ;
195
195
}
196
196
197
197
if (hash_entry->descriptor_index >= assembly_store.assembly_count ) {
198
198
Helpers::abort_application (
199
199
LOG_ASSEMBLY,
200
200
std::format (
201
- " Invalid assembly descriptor index {}, exceeds the maximum value of {}" ,
201
+ " Invalid assembly descriptor index {}, exceeds the maximum value of {}" sv ,
202
202
hash_entry->descriptor_index ,
203
203
assembly_store.assembly_count - 1
204
204
)
@@ -219,7 +219,7 @@ auto AssemblyStore::open_assembly (std::string_view const& name, int64_t &size)
219
219
220
220
log_debug (
221
221
LOG_ASSEMBLY,
222
- " Mapped: image_data == {:p}; debug_info_data == {:p}; config_data == {:p}; descriptor == {:p}; data size == {}; debug data size == {}; config data size == {}; name == '{}'" ,
222
+ " Mapped: image_data == {:p}; debug_info_data == {:p}; config_data == {:p}; descriptor == {:p}; data size == {}; debug data size == {}; config data size == {}; name == '{}'" sv ,
223
223
static_cast <void *>(assembly_runtime_info.image_data ),
224
224
static_cast <void *>(assembly_runtime_info.debug_info_data ),
225
225
static_cast <void *>(assembly_runtime_info.config_data ),
@@ -241,7 +241,7 @@ void AssemblyStore::map (int fd, std::string_view const& apk_path, std::string_v
241
241
detail::mmap_info assembly_store_map = Util::mmap_file (fd, offset, size, store_path);
242
242
243
243
auto [payload_start, payload_size] = Util::get_wrapper_dso_payload_pointer_and_size (assembly_store_map, store_path);
244
- log_debug (LOG_ASSEMBLY, " Adjusted assembly store pointer: {:p}; size: {}" , payload_start, payload_size);
244
+ log_debug (LOG_ASSEMBLY, " Adjusted assembly store pointer: {:p}; size: {}" sv , payload_start, payload_size);
245
245
auto header = static_cast <AssemblyStoreHeader*>(payload_start);
246
246
247
247
auto get_full_store_path = [&apk_path, &store_path]() -> std::string {
@@ -263,7 +263,7 @@ void AssemblyStore::map (int fd, std::string_view const& apk_path, std::string_v
263
263
Helpers::abort_application (
264
264
LOG_ASSEMBLY,
265
265
std::format (
266
- " Assembly store '{}' is not a valid .NET for Android assembly store file" ,
266
+ " Assembly store '{}' is not a valid .NET for Android assembly store file" sv ,
267
267
get_full_store_path ()
268
268
)
269
269
);
@@ -273,7 +273,7 @@ void AssemblyStore::map (int fd, std::string_view const& apk_path, std::string_v
273
273
Helpers::abort_application (
274
274
LOG_ASSEMBLY,
275
275
std::format (
276
- " Assembly store '{}' uses format version {:x}, instead of the expected {:x}" ,
276
+ " Assembly store '{}' uses format version {:x}, instead of the expected {:x}" sv ,
277
277
get_full_store_path (),
278
278
header->version ,
279
279
ASSEMBLY_STORE_FORMAT_VERSION
@@ -289,5 +289,5 @@ void AssemblyStore::map (int fd, std::string_view const& apk_path, std::string_v
289
289
assembly_store.assemblies = reinterpret_cast <AssemblyStoreEntryDescriptor*>(assembly_store.data_start + header_size + header->index_size );
290
290
assembly_store_hashes = reinterpret_cast <AssemblyStoreIndexEntry*>(assembly_store.data_start + header_size);
291
291
292
- log_debug (LOG_ASSEMBLY, " Mapped assembly store {}" , get_full_store_path ());
292
+ log_debug (LOG_ASSEMBLY, " Mapped assembly store {}" sv , get_full_store_path ());
293
293
}
0 commit comments