diff --git a/observe/switch_count.c b/observe/switch_count.c index 46b0a79..a654032 100644 --- a/observe/switch_count.c +++ b/observe/switch_count.c @@ -270,7 +270,7 @@ int main(int argc, char **argv) sleep(env.interval); printf("\n"); - print_log2_hists(skel->maps.hists); + err = print_log2_hists(skel->maps.hists); if (err < 0) { printf("Error polling perf buffer: %d\n", err);