diff options
author | rwatson <rwatson@FreeBSD.org> | 2005-08-15 10:24:20 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2005-08-15 10:24:20 +0000 |
commit | 50f5e50a7bf1405b73d63b5d0aa18d701726e857 (patch) | |
tree | ca5b4b458b19063e4e2bd46fd54fbaedce00babd /lib/libmemstat/libmemstat.3 | |
parent | 4a201f60272f7c85c230d5a1b0479cc12acca8c1 (diff) | |
download | FreeBSD-src-50f5e50a7bf1405b73d63b5d0aa18d701726e857.zip FreeBSD-src-50f5e50a7bf1405b73d63b5d0aa18d701726e857.tar.gz |
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
Diffstat (limited to 'lib/libmemstat/libmemstat.3')
-rw-r--r-- | lib/libmemstat/libmemstat.3 | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libmemstat/libmemstat.3 b/lib/libmemstat/libmemstat.3 index c93d56d..7006603 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 , |