]> granicus.if.org Git - sysstat/commitdiff
Janitorial fixes Part 1
authorSebastien GODARD <sysstat@users.noreply.github.com>
Mon, 19 Apr 2021 08:19:34 +0000 (10:19 +0200)
committerSebastien GODARD <sysstat@users.noreply.github.com>
Mon, 19 Apr 2021 08:19:34 +0000 (10:19 +0200)
Signed-off-by: Sebastien GODARD <sysstat@users.noreply.github.com>
pcp_def_metrics.c
pcp_stats.c
systest.c

index 1bd51ec83159625ef52591fd2f9d0576bb826cbe..36973ccc05296a1d7f3aa6eaf323799fde98c566 100644 (file)
@@ -29,7 +29,7 @@
 #ifdef HAVE_PCP_IMPL_H
 #include <pcp/impl.h>
 #endif
-#endif
+#endif /* HAVE_PCP */
 
 /*
  ***************************************************************************
@@ -835,7 +835,7 @@ void pcp_def_net_nfsd_metrics(void)
        pmiAddMetric("nfs.server.reqs",
                     pmiID(60, 7, 12), PM_TYPE_U32, indom, PM_SEM_COUNTER,
                     pmiUnits(0, 0, 1, 0, 0, PM_COUNT_ONE));
-#endif
+#endif /* HAVE_PCP */
 }
 
 /*
index bcc1ed4a8756d0b9dbc18a187c70433938dcb0c2..3191b4e86e4100816abf2162c65e7c289a61c604 100644 (file)
@@ -352,7 +352,7 @@ __print_funct_t pcp_print_memory_stats(struct activity *a, int curr)
 
        if (DISPLAY_MEMORY(a->opt_flags)) {
 
-               snprintf(buf, sizeof(buf), "%lu", (unsigned long)(smc->tlmkb >> 10));
+               snprintf(buf, sizeof(buf), "%lu", (unsigned long) (smc->tlmkb >> 10));
                pmiPutValue("hinv.physmem", NULL, buf);
 
                snprintf(buf, sizeof(buf), "%llu", smc->tlmkb);
@@ -582,7 +582,7 @@ __print_funct_t pcp_print_net_dev_stats(struct activity *a, int curr)
 
                j = check_net_dev_reg(a, curr, !curr, i);
                if (j < 0) {
-                       /* This is a newly registered interface. */
+                       /* This is a newly registered interface */
                        /* TODO: add a new instance? */
                }
 
@@ -639,7 +639,7 @@ __print_funct_t pcp_print_net_edev_stats(struct activity *a, int curr)
 
                j = check_net_edev_reg(a, curr, !curr, i);
                if (j < 0) {
-                       /* This is a newly registered interface. */
+                       /* This is a newly registered interface */
                        /* TODO: add a new instance? */
                }
 
index 71f73b2032d6a54d2207cd3081a06e6fb721ec5f..4f4c6cf1438dce3c68c2b910b8452ffa9b53277d 100644 (file)
--- a/systest.c
+++ b/systest.c
@@ -169,7 +169,7 @@ void next_time_step(void)
                if (errno == ENOENT) {
                        /* No more kernel directories: Simulate a Ctrl/C */
                        int_handler(0);
-                       return ;
+                       return;
                }
        }