From 36eede8f3162170d5a028593fc6d1babbf1b53a8 Mon Sep 17 00:00:00 2001 From: Marc Hartmayer Date: Mon, 26 Jun 2023 08:49:09 +0000 Subject: [PATCH] cpacfstats: whitespace cleanups and typo fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Holger Dengler Signed-off-by: Marc Hartmayer Signed-off-by: Jan Höppner --- cpacfstats/cpacfstats.c | 4 ++-- cpacfstats/perf_crypto.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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");