Skip to content

Commit

Permalink
add_range: Modify early exit warning to add more info
Browse files Browse the repository at this point in the history
  • Loading branch information
Erick Pfeifer committed Nov 1, 2023
1 parent 9f9a683 commit ce7e84f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/bloaty.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1334,7 +1334,9 @@ void RangeSink::AddRange(const char* analyzer, string_view name,
if (translator_) {
if (!translator_->vm_map.CoversRange(vmaddr, vmsize) ||
!translator_->file_map.CoversRange(fileoff, filesize)) {
WARN("Tried to add range not covered by base map, range ignored.");
WARN("AddRange($0, $1, $2, $3, $4) will be ignored, because it is not "
"covered by base map.",
name.data(), vmaddr, vmsize, fileoff, filesize);
return;
}
}
Expand Down

0 comments on commit ce7e84f

Please sign in to comment.