Skip to content

Commit

Permalink
address cppcheck warnings
Browse files Browse the repository at this point in the history
Change-Id: I1ee5fe9d4056c30659aaadfcbe1880552315852a
  • Loading branch information
rdementi committed Aug 1, 2022
1 parent 8fc06bf commit fa5ba24
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions examples/c_example.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ int main(int argc, const char *argv[])

lcore_id = pcm_getcpu();
printf("C:%llu I:%llu, IPC:%3.2f\n",
PCM.pcm_c_get_cycles(lcore_id),
PCM.pcm_c_get_instr(lcore_id),
(unsigned long long)PCM.pcm_c_get_cycles(lcore_id),
(unsigned long long)PCM.pcm_c_get_instr(lcore_id),
(double)PCM.pcm_c_get_instr(lcore_id)/PCM.pcm_c_get_cycles(lcore_id));
printf("CPU%d E0: %llu, E1: %llu, E2: %llu, E3: %llu\n",
lcore_id,
PCM.pcm_c_get_core_event(lcore_id,0),
PCM.pcm_c_get_core_event(lcore_id,1),
PCM.pcm_c_get_core_event(lcore_id,2),
PCM.pcm_c_get_core_event(lcore_id,3));
(unsigned long long)PCM.pcm_c_get_core_event(lcore_id,0),
(unsigned long long)PCM.pcm_c_get_core_event(lcore_id,1),
(unsigned long long)PCM.pcm_c_get_core_event(lcore_id,2),
(unsigned long long)PCM.pcm_c_get_core_event(lcore_id,3));

return 0;
}
2 changes: 1 addition & 1 deletion tests/daemon_alignment_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ void checkAlignment(char const * debugMessage, void* ptr)
if(currentAlignment != 0)
{
printf("Failed\n");
printf("Current alignment: %llu\n\n", currentAlignment);
printf("Current alignment: %llu\n\n", (unsigned long long)currentAlignment);
exit(EXIT_FAILURE);
}
else
Expand Down

0 comments on commit fa5ba24

Please sign in to comment.