From 6dfe33b4f1b7649cfe80aa8ea50de4964caf6658 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Wed, 3 Oct 2018 16:22:28 -0400 Subject: [PATCH] add prefix to reported errors --- util.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util.c b/util.c index d7fec23..16a6e15 100644 --- a/util.c +++ b/util.c @@ -6,6 +6,8 @@ #include "util.h" COLD noreturn void fatal_error(const char *s) { + const char *prefix = "fatal allocator error: "; + write(STDERR_FILENO, prefix, strlen(prefix)); write(STDERR_FILENO, s, strlen(s)); write(STDERR_FILENO, "\n", 1); abort();