]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: tools: fix vma_set_name() function comment
authorAurelien DARRAGON <adarragon@haproxy.com>
Fri, 24 May 2024 08:22:57 +0000 (10:22 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Fri, 24 May 2024 10:07:07 +0000 (12:07 +0200)
There was a typo in the example provided in vma_set_name(): maps named
using the function will show up as "type:name", not "type.name", updating
the comment to reflect the current behavior.

src/tools.c

index 717de41355e80942556e36b372005ede0c38744f..a8e01fe43d286ddfb696befd8bb56fb08a17e7dd 100644 (file)
@@ -6515,9 +6515,9 @@ void vma_set_name(void *addr, size_t size, const char *type, const char *name)
                 * except [, ], \, $ and '.
                 * As a result, when looking for /proc/<pid>/maps, we can see the anonymous range
                 * as follow :
-                * `7364c4fff000-736508000000 rw-s 00000000 00:01 3540  [anon_shmem:scope.name]`
+                * `7364c4fff000-736508000000 rw-s 00000000 00:01 3540  [anon_shmem:scope:name]`
                 * (MAP_SHARED)
-                * `7364c4fff000-736508000000 rw-s 00000000 00:01 3540  [anon:scope.name]`
+                * `7364c4fff000-736508000000 rw-s 00000000 00:01 3540  [anon:scope:name]`
                 * (MAP_PRIVATE)
                 */
                char fullname[80];