Skip to content

Commit

Permalink
update(userspace/libsinsp): be more explicit.
Browse files Browse the repository at this point in the history
Co-authored-by: Mauro Ezequiel Moltrasio <mmoltras@redhat.com>
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
  • Loading branch information
2 people authored and poiana committed Sep 12, 2022
1 parent ec72719 commit 7a6b2fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userspace/libsinsp/examples/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ std::string get_event_category(ppm_event_category category)
//
std::string get_event_type(uint16_t type)
{
if (type > 1 && type < PPM_EVENT_MAX)
if (type < PPM_EVENT_MAX && type != PPME_GENERIC_E && type != PPME_GENERIC_X)
{
return g_infotables.m_event_info[type].name;
}
Expand Down

0 comments on commit 7a6b2fe

Please sign in to comment.