diff options
author | Jim Meyering <jim@meyering.net> | 2004-01-08 14:28:44 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-01-08 14:28:44 +0000 |
commit | 02411d8bef4260d6f25c75936af240040719c0bc (patch) | |
tree | e6eb9c2b0c92a9816aeee2bfbf263cf24ec0ad61 | |
parent | 867ffc819bd7007694c799f98ba215d2f192f062 (diff) | |
download | coreutils-02411d8bef4260d6f25c75936af240040719c0bc.tar.xz |
(human_fstype): Use %lx, not %x format for `unsigned long'.
-rw-r--r-- | src/stat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/stat.c b/src/stat.c index 8b9881653..98d2d08a4 100644 --- a/src/stat.c +++ b/src/stat.c @@ -1,5 +1,5 @@ /* stat.c -- display file or filesystem status - Copyright (C) 2001, 2002, 2003 Free Software Foundation. + Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation. 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 @@ -308,9 +308,9 @@ human_fstype (STRUCT_STATVFS const *statfsbuf) return (char *) type; { - static char buf[sizeof "UNKNOWN (0x%x)" - 2 + static char buf[sizeof "UNKNOWN (0x%lx)" - 3 + 2 * sizeof (statfsbuf->f_type)]; - sprintf (buf, "UNKNOWN (0x%x)", statfsbuf->f_type); + sprintf (buf, "UNKNOWN (0x%lx)", (unsigned long) statfsbuf->f_type); return buf; } #endif |