diff --exclude-from=exclude -N -u -r nsalibselinux/utils/avcstat.c libselinux-1.30.6/utils/avcstat.c --- nsalibselinux/utils/avcstat.c 2005-05-19 15:24:25.000000000 -0400 +++ libselinux-1.30.6/utils/avcstat.c 2006-05-09 15:09:13.000000000 -0400 @@ -27,12 +27,12 @@ #define HEADERS "lookups hits misses allocations reclaims frees" struct avc_cache_stats { - unsigned int lookups; - unsigned int hits; - unsigned int misses; - unsigned int allocations; - unsigned int reclaims; - unsigned int frees; + unsigned long long lookups; + unsigned long long hits; + unsigned long long misses; + unsigned long long allocations; + unsigned long long reclaims; + unsigned long long frees; }; static int interval; @@ -172,7 +172,7 @@ while ((line = strtok(NULL, "\n"))) { struct avc_cache_stats tmp; - ret = sscanf(line, "%u %u %u %u %u %u", + ret = sscanf(line, "%Lu %Lu %Lu %Lu %Lu %Lu", &tmp.lookups, &tmp.hits, &tmp.misses, @@ -195,7 +195,7 @@ die("unable to parse \'%s\': no data", avcstatfile); if (cumulative || (!cumulative && !i)) - printf("%10u %10u %10u %10u %10u %10u\n", + printf("%10Lu %10Lu %10Lu %10Lu %10Lu %10Lu\n", tot.lookups, tot.hits, tot.misses, tot.allocations, tot.reclaims, tot.frees); else { @@ -205,7 +205,7 @@ rel.allocations = tot.allocations - last.allocations; rel.reclaims = tot.reclaims - last.reclaims; rel.frees = tot.frees - last.frees; - printf("%10u %10u %10u %10u %10u %10u\n", + printf("%10Lu %10Lu %10Lu %10Lu %10Lu %10Lu\n", rel.lookups, rel.hits, rel.misses, rel.allocations, rel.reclaims, rel.frees); }