]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
stat: print file-system total inode count (%c) as an unsigned number
authorMichael Meskes <michael@fam-meskes.de>
Fri, 2 Jan 2009 15:40:52 +0000 (16:40 +0100)
committerJim Meyering <meyering@redhat.com>
Sat, 3 Jan 2009 08:42:39 +0000 (09:42 +0100)
* src/stat.c (print_statfs): Print statfs.f_files, the total inode
count of a file system, as an unsigned number.

src/stat.c

index f5bf8cdeeee4d98b3f00acd05621663a5935ccd9..feea4b793db6f43f7f2336f4f11261f1d12f9b82 100644 (file)
@@ -1,5 +1,5 @@
 /* stat.c -- display file or file system status
-   Copyright (C) 2001-2008 Free Software Foundation, Inc.
+   Copyright (C) 2001-2009 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -541,7 +541,7 @@ print_statfs (char *pformat, size_t prefix_len, char m, char const *filename,
       }
       break;
     case 'c':
-      out_int (pformat, prefix_len, statfsbuf->f_files);
+      out_uint (pformat, prefix_len, statfsbuf->f_files);
       break;
     case 'd':
       out_int (pformat, prefix_len, statfsbuf->f_ffree);