Skip to content

Commit 0baed04

Browse files
committed
improve an error message
Change-Id: I11a834ffc7857aa9ade5fe86798ca8f9648603cd
1 parent efeccd5 commit 0baed04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cpucounters.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3179,7 +3179,7 @@ PCM::ErrorCode PCM::programCoreCounters(const int i /* core */,
31793179
}
31803180
}
31813181

3182-
if (programPerfEvent(e, PERF_GEN_EVENT_0_POS + j, std::string("generic event #") + std::to_string(i)) == false)
3182+
if (programPerfEvent(e, PERF_GEN_EVENT_0_POS + j, std::string("generic event #") + std::to_string(j) + std::string(" on core #") + std::to_string(i)) == false)
31833183
{
31843184
return PCM::UnknownError;
31853185
}

0 commit comments

Comments
 (0)