cpacfstats: whitespace cleanups and typo fix

Reviewed-by: Holger Dengler <dengler@linux.ibm.com>
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
Marc Hartmayer
2023-06-26 08:49:09 +00:00
committed by Jan Höppner
parent ec0dcdb685
commit 36eede8f31
2 changed files with 4 additions and 4 deletions

View File

@@ -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, ...)
{

View File

@@ -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");