Skip to content

Commit

Permalink
Add full module path in debug log (#5707)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuhanov authored Oct 28, 2022
1 parent c2c85ef commit 196e320
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/module_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ module_list_remove_mapping(module_area_t *ma, app_pc map_start, app_pc map_end)
ASSERT(os_get_module_info_write_locked());
vmvector_remove(loaded_module_areas, map_start, map_end);
LOG(GLOBAL, LOG_INTERP | LOG_VMAREAS, 2,
"\tmodule %s segment [" PFX "," PFX "] removed\n",
"\tmodule %s %s segment [" PFX "," PFX "] removed\n",
ma->full_path == NULL ? "<no path>" : ma->full_path,
(GET_MODULE_NAME(&ma->names) == NULL) ? "<no name>" : GET_MODULE_NAME(&ma->names),
map_start, map_end);
}
Expand All @@ -260,7 +261,8 @@ module_list_add(app_pc base, size_t view_size, bool at_map,
ASSERT(ma != NULL);

LOG(GLOBAL, LOG_INTERP | LOG_VMAREAS, 1,
"module %s |%s| [" PFX "," PFX "] added\n",
"module %s %s |%s| [" PFX "," PFX "] added\n",
ma->full_path == NULL ? "<no path>" : ma->full_path,
(GET_MODULE_NAME(&ma->names) == NULL) ? "<no name>"
: GET_MODULE_NAME(&ma->names),
ma->names.file_name == NULL ? "<no file>" : ma->names.file_name, base,
Expand Down

0 comments on commit 196e320

Please sign in to comment.