diff options
author | Mike Frysinger <vapier@gentoo.org> | 2022-11-10 00:29:27 +0700 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-11-10 00:29:27 +0700 |
commit | 3abad2f6a637a0c56af70311d94ec66eea1b4852 (patch) | |
tree | fc8c7e6b9f9d2007c81650e72eb3dd4f93f0aec7 /sim/igen/misc.h | |
parent | 959550953e9467b3aa3e168c8ea313e123626d9b (diff) | |
download | binutils-3abad2f6a637a0c56af70311d94ec66eea1b4852.zip binutils-3abad2f6a637a0c56af70311d94ec66eea1b4852.tar.gz binutils-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.h | 4 |
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) |