Skip to content

Commit a39b832

Browse files
OSS-Fuzz Teamcopybara-github
authored andcommitted
Indexer: Minor output formatting update
Indexer-PiperOrigin-RevId: 810813698
1 parent 0d62e34 commit a39b832

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

infra/indexer/index/in_memory_index.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@ void MaybePrintLinkerMessage(absl::Span<const Entity> entities,
7474
// Secondly, if we have an incomplete entity that does not have a
7575
// corresponding complete entity, then linking will be incomplete.
7676
if (complete_count > 1 && incomplete_count) {
77-
stream << "error: multiple definitions for " << entities[0].name_prefix()
78-
<< entities[0].name() << entities[0].name_suffix() << "\n";
77+
stream << "error: multiple definitions for " << entities[0].full_name()
78+
<< "\n";
7979
} else if (!complete_count && incomplete_count) {
8080
#ifndef NDEBUG
8181
// TODO: Enable this in opt builds once the number of warnings is
8282
// more reasonable.
83-
stream << "warning: no definition found for " << entities[0].name_prefix()
84-
<< entities[0].name() << entities[0].name_suffix() << "\n";
83+
stream << "warning: no definition found for " << entities[0].full_name()
84+
<< "\n";
8585
#else
8686
return;
8787
#endif // NDEBUG
@@ -91,7 +91,7 @@ void MaybePrintLinkerMessage(absl::Span<const Entity> entities,
9191

9292
for (const auto& entity : entities) {
9393
const auto& location = locations[entity.location_id()];
94-
stream << " " << location.path() << ":" << location.start_line() << ":"
94+
stream << " " << location.path() << ":" << location.start_line() << "-"
9595
<< location.end_line()
9696
<< (entity.is_incomplete() ? "" : " [definition]")
9797
<< (entity.is_weak() ? " [weak]" : "") << "\n";

0 commit comments

Comments
 (0)