summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-10-09 12:06:16 -0400
committerFreya Murphy <freya@freyacat.org>2024-10-09 12:06:16 -0400
commit94617351edadc7c2207f002a34a1aeb4bdca3005 (patch)
treea64e5d768ccbd573dd2d572195494936258c73bf /lib
parentupdate mld comments (diff)
downloadmips-94617351edadc7c2207f002a34a1aeb4bdca3005.tar.gz
mips-94617351edadc7c2207f002a34a1aeb4bdca3005.tar.bz2
mips-94617351edadc7c2207f002a34a1aeb4bdca3005.zip
add bug logging fn
Diffstat (limited to 'lib')
-rw-r--r--lib/error.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/error.c b/lib/error.c
index 3d88234..262896e 100644
--- a/lib/error.c
+++ b/lib/error.c
@@ -25,6 +25,9 @@ void __log_impl_pos(int line, int column, int type, const char *format, ...)
case __ERROR:
t = "\033[31merror:\033[0m";
break;
+ case __BUG:
+ t = "\033[31bug:\033[0m";
+ break;
}
if (current_file != NULL)
@@ -55,6 +58,9 @@ void __log_impl(int type, const char *format, ...)
case __ERROR:
t = "\033[31merror:\033[0m";
break;
+ case __BUG:
+ t = "\033[31bug:\033[0m";
+ break;
}
if (current_file != NULL)