From 7ecc9c35c3b63f879f6a20b72bb8a1aa80a1fe41 Mon Sep 17 00:00:00 2001 From: Dong Jun Woun Date: Fri, 4 Oct 2024 10:53:30 -0400 Subject: [PATCH] use strcmp --- src/utils/print_header.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/print_header.c b/src/utils/print_header.c index 61f7fe242..8f4067096 100644 --- a/src/utils/print_header.c +++ b/src/utils/print_header.c @@ -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 ) {