Removed trailing \n from error_msg{,_and_die} messages.
diff --git a/dumpkmap.c b/dumpkmap.c
index b2067b3..4ab711e 100644
--- a/dumpkmap.c
+++ b/dumpkmap.c
@@ -81,7 +81,7 @@
ke.kb_table = i;
if (ioctl(fd, KDGKBENT, &ke) < 0) {
- error_msg("ioctl returned: %s, %s, %s, %xqq\n",strerror(errno),(char *)&ke.kb_index,(char *)&ke.kb_table,(int)&ke.kb_value);
+ error_msg("ioctl returned: %s, %s, %s, %xqq", strerror(errno),(char *)&ke.kb_index,(char *)&ke.kb_table,(int)&ke.kb_value);
}
else {
write(1,(void*)&ke.kb_value,2);