Code

My solaris box needs %llu to display 64bits integers.
authorThomas Guyot-Sionnest <dermoth@users.sourceforge.net>
Fri, 21 Sep 2007 05:05:58 +0000 (05:05 +0000)
committerThomas Guyot-Sionnest <dermoth@users.sourceforge.net>
Fri, 21 Sep 2007 05:05:58 +0000 (05:05 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1783 f882894a-f735-0410-b71e-b25c423dba1c

plugins/check_disk.c

index 9e1ba0db7b49922da98c797af30dd7f17c7bcc4b..90b2248435366b4140b30797f6a92071a74f4e3e 100644 (file)
@@ -319,7 +319,7 @@ main (int argc, char **argv)
       dfree_inodes_percent = 100 - dused_inodes_percent;
 
       if (verbose >= 3) {
-        printf ("For %s, used_pct=%g free_pct=%g used_units=%g free_units=%g total_units=%g used_inodes_pct=%g free_inodes_pct=%g fsp.fsu_blocksize=%lu mult=%lu\n", 
+        printf ("For %s, used_pct=%g free_pct=%g used_units=%g free_units=%g total_units=%g used_inodes_pct=%g free_inodes_pct=%g fsp.fsu_blocksize=%llu mult=%llu\n", 
           me->me_mountdir, dused_pct, dfree_pct, dused_units, dfree_units, dtotal_units, dused_inodes_percent, dfree_inodes_percent, fsp.fsu_blocksize, mult);
       }