aboutsummaryrefslogtreecommitdiff
path: root/sim/igen/misc.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2022-11-10 00:29:27 +0700
committerMike Frysinger <vapier@gentoo.org>2022-11-10 00:29:27 +0700
commit3abad2f6a637a0c56af70311d94ec66eea1b4852 (patch)
treefc8c7e6b9f9d2007c81650e72eb3dd4f93f0aec7 /sim/igen/misc.h
parent959550953e9467b3aa3e168c8ea313e123626d9b (diff)
downloadgdb-3abad2f6a637a0c56af70311d94ec66eea1b4852.zip
gdb-3abad2f6a637a0c56af70311d94ec66eea1b4852.tar.gz
gdb-3abad2f6a637a0c56af70311d94ec66eea1b4852.tar.bz2
sim: igen: add missing newline to various error messages
The error() function expects a trailing newline in its message. Most callers do this already, so adding it to the few that don't.
Diffstat (limited to 'sim/igen/misc.h')
-rw-r--r--sim/igen/misc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sim/igen/misc.h b/sim/igen/misc.h
index a1cae76..214505a 100644
--- a/sim/igen/misc.h
+++ b/sim/igen/misc.h
@@ -64,7 +64,7 @@ do { \
line_ref line; \
line.file_name = filter_filename (__FILE__); \
line.line_nr = __LINE__; \
- error (&line, EXPRESSION); \
+ error (&line, EXPRESSION "\n"); \
} while (0)
#define ASSERT(EXPRESSION) \
@@ -73,7 +73,7 @@ do { \
line_ref line; \
line.file_name = filter_filename (__FILE__); \
line.line_nr = __LINE__; \
- error(&line, "assertion failed - %s\n", #EXPRESSION); \
+ error (&line, "assertion failed - %s\n", #EXPRESSION); \
} \
} while (0)