From 6f8abdc978c343523ba5c2b084ef8a87639ecab4 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 30 Apr 2024 13:49:45 +0200 Subject: [PATCH] cleanup: tab indent and typo --- lib/mm/memlock.c | 20 ++++++++++---------- tools/command.c | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/mm/memlock.c b/lib/mm/memlock.c index 38dd2ea92..33e8c2b9c 100644 --- a/lib/mm/memlock.c +++ b/lib/mm/memlock.c @@ -184,16 +184,16 @@ static void _allocate_memory(void) #else #define MALLINFO mallinfo #endif - /* - * When a brk() fails due to fragmented address space (which sometimes - * happens when we try to grab 8M or so), glibc will make a new - * arena. In this arena, the rules for using “direct” mmap are relaxed, - * circumventing the MAX_MMAPs and MMAP_THRESHOLD settings. We can, - * however, detect when this happens with mallinfo() and try to co-opt - * malloc into using MMAP as a MORECORE substitute instead of returning - * MMAP'd memory directly. Since MMAP-as-MORECORE does not munmap the - * memory on free(), this is good enough for our purposes. - */ + /* + * When a brk() fails due to fragmented address space (which sometimes + * happens when we try to grab 8M or so), glibc will make a new + * arena. In this arena, the rules for using "direct" mmap are relaxed, + * circumventing the MAX_MMAPs and MMAP_THRESHOLD settings. We can, + * however, detect when this happens with mallinfo() and try to co-opt + * malloc into using MMAP as a MORECORE substitute instead of returning + * MMAP'd memory directly. Since MMAP-as-MORECORE does not munmap the + * memory on free(), this is good enough for our purposes. + */ while (missing > 0) { struct MALLINFO inf = MALLINFO(); hblks = inf.hblks; diff --git a/tools/command.c b/tools/command.c index b72254db0..21b58f103 100644 --- a/tools/command.c +++ b/tools/command.c @@ -656,7 +656,7 @@ static void _add_oo_definition_line(const char *name, const char *line) oo = &_oo_lines[_oo_line_count++]; if (!(oo->name = strdup(name))) { - log_error("Failer to duplicate name %s.", name); + log_error("Failed to duplicate name %s.", name); return; /* FIXME: return code */ } @@ -669,7 +669,7 @@ static void _add_oo_definition_line(const char *name, const char *line) start = strchr(line, ':') + 2; if (!(oo->line = strdup(start))) { - log_error("Failer to duplicate line %s.", start); + log_error("Filler to duplicate line %s.", start); return; } }