From 50f5e50a7bf1405b73d63b5d0aa18d701726e857 Mon Sep 17 00:00:00 2001 From: rwatson Date: Mon, 15 Aug 2005 10:24:20 +0000 Subject: [PATCH] The "Mbuf" zone was renamed "mbuf" to improve consistency, but the code example in libmemstat.3 was not updated to take this rename into account. Update the example. PR: 84946 Submitted by: Wojciech A. Koszek MFC after: 1 day --- lib/libmemstat/libmemstat.3 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libmemstat/libmemstat.3 b/lib/libmemstat/libmemstat.3 index c93d56d01c53..70066035a6ba 100644 --- a/lib/libmemstat/libmemstat.3 +++ b/lib/libmemstat/libmemstat.3 @@ -436,7 +436,7 @@ Create a memory type list, query the .Xr uma 9 memory allocator for available statistics, and print out the number of allocations performed by the -.Dv Mbuf +.Dv mbuf zone. .Bd -literal -offset indent struct memory_type_list *mtlp; @@ -448,13 +448,13 @@ if (mtlp == NULL) err(-1, "memstat_mtl_alloc"); if (memstat_sysctl_uma(mtlp, 0) < 0) err(-1, "memstat_sysctl_uma"); -mtp = memstat_mtl_find(mtlp, ALLOCATOR_UMA, "Mbuf"); +mtp = memstat_mtl_find(mtlp, ALLOCATOR_UMA, "mbuf"); if (mtp == NULL) - errx(-1, "memstat_mtl_find: Mbuf not found"); + errx(-1, "memstat_mtl_find: mbuf not found"); mbuf_count = memstat_get_count(mtp); memstat_mtl_free(mtlp); -printf("Mbufs: %llu\\n", (unsigned long long)mbuf_count); +printf("mbufs: %llu\\n", (unsigned long long)mbuf_count); .Ed .Sh SEE ALSO .Xr malloc 9 ,