From 8f073c1e7121ca5f1d7422bcb71002bca19a6290 Mon Sep 17 00:00:00 2001 From: glebius Date: Sat, 21 Oct 2006 09:08:35 +0000 Subject: [PATCH] Print the number of allocation failures in UMA zones. PR: kern/102940 --- usr.bin/vmstat/vmstat.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/usr.bin/vmstat/vmstat.c b/usr.bin/vmstat/vmstat.c index 6ffb09901ffd..66c83ce89230 100644 --- a/usr.bin/vmstat/vmstat.c +++ b/usr.bin/vmstat/vmstat.c @@ -969,16 +969,16 @@ domemstat_zone(void) memstat_strerror(error)); } } - printf("%-15s %-8s %-9s %-7s %-5s %-8s\n\n", "ITEM", "SIZE", "LIMIT", - "USED", "FREE", "REQUESTS"); + printf("%-15s %-8s %-9s %-7s %-5s %-8s %-8s\n\n", "ITEM", "SIZE", + "LIMIT", "USED", "FREE", "REQUESTS", "FAILURES"); for (mtp = memstat_mtl_first(mtlp); mtp != NULL; mtp = memstat_mtl_next(mtp)) { strlcpy(name, memstat_get_name(mtp), MEMTYPE_MAXNAME); strcat(name, ":"); - printf("%-15s %4llu, %8llu, %7llu, %6llu, %8llu\n", name, + printf("%-15s %4llu, %8llu, %7llu, %6llu, %8llu %8llu\n", name, memstat_get_size(mtp), memstat_get_countlimit(mtp), memstat_get_count(mtp), memstat_get_free(mtp), - memstat_get_numallocs(mtp)); + memstat_get_numallocs(mtp), memstat_get_failures(mtp)); } memstat_mtl_free(mtlp); printf("\n");