From 3e288305c1e3d8aa3567ad37745901000e398493 Mon Sep 17 00:00:00 2001 From: Alexander Richardson Date: Mon, 26 Aug 2024 02:20:49 -0700 Subject: [PATCH] arch-arm: downgrade a warning to a DPRINTF (#1438) Programming an event ID while counters are disabled is perfectly fine, so we should just log this using DPRINTF instead of printing a warn() every time it happens. Change-Id: Ib9499857271033ef941f74a7f012d8694328eaf3 --- src/arch/arm/pmu.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/arch/arm/pmu.cc b/src/arch/arm/pmu.cc index 326e7c9257..161ddbeafa 100644 --- a/src/arch/arm/pmu.cc +++ b/src/arch/arm/pmu.cc @@ -543,8 +543,9 @@ PMU::CounterState::detach() sourceEvent->detachEvent(this); sourceEvent = nullptr; } else { - debugCounter("detaching event not currently attached" - " to any event\n"); + DPRINTFS(PMUVerbose, &pmu, + "detaching event %d not currently attached to any event" + " [counterId = %d]\n", eventId, counterId); } }