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 <dunstan at freebsd dot czest dot pl>
MFC after:	1 day
This commit is contained in:
Robert Watson 2005-08-15 10:24:20 +00:00
parent 27fa5ded62
commit 33f23dc2fb

View File

@ -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 ,