aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>2024-03-07 12:33:24 -0500
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>2024-03-07 12:33:24 -0500
commit87d11fb348b6ed889587da3e26f6aa0c1a624d1a (patch)
tree21b1137c9bed1c668a6d4a479f677d9d73395fd3
parentd9b46e1c0d5d468e68115160b2c3f0ac580b32d7 (diff)
downloadlibrseq-87d11fb348b6ed889587da3e26f6aa0c1a624d1a.tar.gz
Fix: add missing \n in fprintf
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Change-Id: Ibbb61e3b7f66f8d9b7ed125e4123581b2c1b93d9
-rw-r--r--src/rseq-percpu-alloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rseq-percpu-alloc.c b/src/rseq-percpu-alloc.c
index 1bddaa2..1825bad 100644
--- a/src/rseq-percpu-alloc.c
+++ b/src/rseq-percpu-alloc.c
@@ -381,7 +381,7 @@ void set_alloc_slot(struct rseq_percpu_pool *pool, size_t item_offset)
/* Print error if bit is already set. */
if (bitmap[k] & mask) {
- fprintf(stderr, "%s: Allocator corruption detected for pool %p, item offset %zu.",
+ fprintf(stderr, "%s: Allocator corruption detected for pool %p, item offset %zu.\n",
__func__, pool, item_offset);
abort();
}
@@ -447,7 +447,7 @@ void clear_alloc_slot(struct rseq_percpu_pool *pool, size_t item_offset)
/* Print error if bit is not set. */
if (!(bitmap[k] & mask)) {
- fprintf(stderr, "%s: Double-free detected for pool %p, item offset %zu.",
+ fprintf(stderr, "%s: Double-free detected for pool %p, item offset %zu.\n",
__func__, pool, item_offset);
abort();
}