Skip to content

Commit

Permalink
use strcmp
Browse files Browse the repository at this point in the history
  • Loading branch information
Dong Jun Woun committed Oct 4, 2024
1 parent 958341b commit 7ecc9c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/print_header.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ papi_print_header( char *prompt, const PAPI_hw_info_t ** hwinfo )
for (int cid = 0; cid < numcmp; cid++ ) {
const PAPI_component_info_t* cmpinfo = PAPI_get_component_info( cid );
if (cmpinfo->disabled) continue;
if (cmpinfo->name == "perf_event") perf_event = 1;
if (strcmp(cmpinfo->name, "perf_event")== 0) perf_event = 1;
}

if ( cnt >= 0 ) {
Expand Down

0 comments on commit 7ecc9c3

Please sign in to comment.