From f08813635b4c590d9317adc78f6557b26d45e118 Mon Sep 17 00:00:00 2001 From: Ryan Gonzalez Date: Sat, 19 Aug 2023 19:35:13 -0500 Subject: [PATCH] converter: Don't print warnings on unknown addresses This can happen for a wide variety of reasons, so there's no point in raising concern. --- tools/alys_converter.cr | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/tools/alys_converter.cr b/tools/alys_converter.cr index 6bc65f5..0f2154f 100644 --- a/tools/alys_converter.cr +++ b/tools/alys_converter.cr @@ -181,8 +181,6 @@ class EventReader visitor.visit_realloc raw_event, time_offset, prev_info, info, read_stack else - STDERR.puts "WARNING: Unknown previous address: #{realloc_extra.prev_addr}" - # Treat it as an alloc. addrs_to_ids[raw_event.addr] = info = AllocInfo.new id: next_id, addr: raw_event.addr, @@ -193,10 +191,7 @@ class EventReader end when EventKind::Free info = addrs_to_ids.delete raw_event.addr - if !info - STDERR.puts "WARNING: Unknown address: #{raw_event.addr}" - next - end + next if !info visitor.visit_free raw_event, time_offset, info end -- 2.45.2