Skip to content

Commit

Permalink
Fix print formats in ibmad_sampler & ibmad_record_sampler plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
nichamon committed Aug 10, 2023
1 parent 514ad45 commit df5e6e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <limits.h>
#include <string.h>
#include <dirent.h>
#include <inttypes.h>
#include <coll/rbt.h>
#include <ctype.h>
#include <sys/queue.h>
Expand Down Expand Up @@ -667,7 +668,7 @@ static void dump_port_filters()
for (i = 0 ; i < MAX_CA_NAMES; i++) {
if (conf.ports[i].ca_name[0] == '\0')
break;
ovis_log(mylog, OVIS_LDEBUG, SAMP ": dpf: %s : 0x%x\n",
ovis_log(mylog, OVIS_LDEBUG, SAMP ": dpf: %s : 0x%" PRIu64 "\n",
conf.ports[i].ca_name, conf.ports[i].port_bits);
}
}
Expand Down
3 changes: 2 additions & 1 deletion ldms/src/sampler/ibmad_sampler/ibmad_sampler.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#include <string.h>
#include <dirent.h>
#include <coll/rbt.h>
#include <inttypes.h>
#include <sys/queue.h>
#include <sys/types.h>
#include <sys/stat.h>
Expand Down Expand Up @@ -617,7 +618,7 @@ static void dump_port_filters()
for (i = 0 ; i < MAX_CA_NAMES; i++) {
if (conf.ports[i].ca_name[0] == '\0')
break;
ovis_log(mylog, OVIS_LDEBUG, SAMP ": dpf: %s : 0x%x\n",
ovis_log(mylog, OVIS_LDEBUG, SAMP ": dpf: %s : 0x%" PRIu64 "\n",
conf.ports[i].ca_name, conf.ports[i].port_bits);
}
}
Expand Down

0 comments on commit df5e6e3

Please sign in to comment.