misc: tweaks (mostly cosmetic) to several source files

. a more appropriate error return code was substituted
. a safer form of comparison is utilized in two places
. a STAT_VAL macro replaced by more proper MEMINFO_VAL
. several of the silly 'xerrx' formats had been missed
. a few whitespace changes have also been incorporated

Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
Jim Warner
2016-07-24 00:00:00 -05:00
committed by Craig Small
parent 612f36189e
commit 5c857b865e
3 changed files with 29 additions and 33 deletions

View File

@ -994,7 +994,7 @@ PROCPS_EXPORT struct slabinfo_stack **procps_slabinfo_sort (
if (p->item == sortitem)
break;
++offset;
if (p->item == SLABINFO_logical_end)
if (p->item >= SLABINFO_logical_end)
return NULL;
++p;
}