Skip to content

Commit

Permalink
slingshot_metrics: include rc in log message
Browse files Browse the repository at this point in the history
  • Loading branch information
morrone committed Nov 27, 2024
1 parent a7cb0c6 commit 36263a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ldms/src/sampler/slingshot_metrics/slingshot_metrics.c
Original file line number Diff line number Diff line change
Expand Up @@ -593,8 +593,8 @@ static int sample(struct ldmsd_sampler *self)
&counters.value[j],
NULL);
if (rc != 0) {
log_fn(LDMSD_LWARNING, SAMP": cxil_read_cntr() failed for device %s\n",
dev_info->device_name);
log_fn(LDMSD_LWARNING, SAMP": cxil_read_cntr() failed for device %s, rc = %d\n",
dev_info->device_name, rc);
cache_cxil_dev_close(dev);
/* FIXME - we should really free the record here,
and avoid adding it to the list, but there is
Expand Down

0 comments on commit 36263a1

Please sign in to comment.