From: Aurelien DARRAGON Date: Fri, 24 May 2024 08:22:57 +0000 (+0200) Subject: CLEANUP: tools: fix vma_set_name() function comment X-Git-Tag: v3.0-dev13~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23814a44e5d2c03d343fcaf86cdabc95ca0c31b4;p=thirdparty%2Fhaproxy.git CLEANUP: tools: fix vma_set_name() function comment 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. --- diff --git a/src/tools.c b/src/tools.c index 717de41355..a8e01fe43d 100644 --- a/src/tools.c +++ b/src/tools.c @@ -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//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];