summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2022-03-26 14:08:57 (GMT)
committerRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2022-03-26 14:08:57 (GMT)
commit08df04c1708cddca0bffdea5124928ba5807f578 (patch)
treec4f07ae9392a927d424b275af572d1558089b50f
parent7ecf2157a927c9a37d2a396f86af7ef5746a7315 (diff)
downloadmonitoring-plugins-08df04c.tar.gz
Proper format strings for printf
-rw-r--r--plugins/check_disk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index 8d99a7e..10768f8 100644
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
@@ -287,7 +287,7 @@ main (int argc, char **argv)
287 get_stats (path, &fsp); 287 get_stats (path, &fsp);
288 288
289 if (verbose >= 3) { 289 if (verbose >= 3) {
290 printf ("For %s, used_pct=%g free_pct=%g used_units=%llu free_units=%llu total_units=%llu used_inodes_pct=%g free_inodes_pct=%g fsp.fsu_blocksize=%llu mult=%llu\n", 290 printf ("For %s, used_pct=%g free_pct=%g used_units=%lu free_units=%lu total_units=%lu used_inodes_pct=%g free_inodes_pct=%g fsp.fsu_blocksize=%lu mult=%lu\n",
291 me->me_mountdir, 291 me->me_mountdir,
292 path->dused_pct, 292 path->dused_pct,
293 path->dfree_pct, 293 path->dfree_pct,
@@ -1041,7 +1041,7 @@ get_stats (struct parameter_list *p, struct fs_usage *fsp) {
1041 get_fs_usage (p_list->best_match->me_mountdir, p_list->best_match->me_devname, &tmpfsp); 1041 get_fs_usage (p_list->best_match->me_mountdir, p_list->best_match->me_devname, &tmpfsp);
1042 get_path_stats(p_list, &tmpfsp); 1042 get_path_stats(p_list, &tmpfsp);
1043 if (verbose >= 3) 1043 if (verbose >= 3)
1044 printf("Group %s: adding %llu blocks sized %llu, (%s) used_units=%lu free_units=%llu total_units=%llu mult=%llu\n", 1044 printf("Group %s: adding %lu blocks sized %lu, (%s) used_units=%lu free_units=%lu total_units=%lu mult=%lu\n",
1045 p_list->group, 1045 p_list->group,
1046 tmpfsp.fsu_blocks, 1046 tmpfsp.fsu_blocks,
1047 tmpfsp.fsu_blocksize, 1047 tmpfsp.fsu_blocksize,
@@ -1070,7 +1070,7 @@ get_stats (struct parameter_list *p, struct fs_usage *fsp) {
1070 first = 0; 1070 first = 0;
1071 } 1071 }
1072 if (verbose >= 3) 1072 if (verbose >= 3)
1073 printf("Group %s now has: used_units=%llu free_units=%llu total_units=%llu fsu_blocksize=%llu mult=%llu\n", 1073 printf("Group %s now has: used_units=%lu free_units=%lu total_units=%lu fsu_blocksize=%lu mult=%lu\n",
1074 p->group, 1074 p->group,
1075 p->dused_units, 1075 p->dused_units,
1076 p->dfree_units, 1076 p->dfree_units,