diff --git a/cpacfstats/cpacfstats.c b/cpacfstats/cpacfstats.c index ba9b6c48..238b1760 100644 --- a/cpacfstats/cpacfstats.c +++ b/cpacfstats/cpacfstats.c @@ -323,7 +323,7 @@ static void json_print_virtual_counter_answer(int s, int ctr, pai_str[paictr], space, paictr + 1); if (paistate < 0) { printf("\"error\":%d}", paistate); - /* Protocol does not send furter counters. */ + /* Protocol does not send further counters. */ return; } printf("\"value\":%"PRIu64"}", paivalue); @@ -420,7 +420,7 @@ static void json_print_answer(int s, int ctr, int state, uint64_t value) printf("\"value\":%"PRIu64"}", value); } } - + int eprint(const char *format, ...) { diff --git a/cpacfstats/perf_crypto.c b/cpacfstats/perf_crypto.c index a08af608..727be005 100644 --- a/cpacfstats/perf_crypto.c +++ b/cpacfstats/perf_crypto.c @@ -371,7 +371,7 @@ static int addallcpus(void) errno, strerror(errno)); return -1; } - + while (!feof(fp)) { /* scan all intervals of online cpus */ scanned = fscanf(fp, "%u-%u", &start, &end); @@ -414,7 +414,7 @@ static void *hotplughandler(void *UNUSED(unused)) struct udev *hotplug; struct udev_monitor *monitor; struct pollfd item; - + hotplug = udev_new(); if (!hotplug) { eprint("Failed to create hotplug device\n");