extra control characters in panic messages

I noticed a few panic messages contained newlines, and one included a naked
carriage return.  panic() adds a newline itself, and also generally ensures
the message will be on a new line (the initial "oops" ensures the message
itself will be on a new lines).  This patch removes the unneeded characters.
This commit is contained in:
cohrs
2003-10-23 01:30:05 +00:00
parent cc5bea4fbf
commit cc52b2f533
4 changed files with 11 additions and 11 deletions
+4 -4
View File
@@ -688,7 +688,7 @@ X11_create_nhwindow(type)
create_text_window(wp);
break;
default:
panic("create_nhwindow: unknown type [%d]\n", type);
panic("create_nhwindow: unknown type [%d]", type);
break;
}
return window;
@@ -712,7 +712,7 @@ X11_clear_nhwindow(window)
/* do nothing for these window types */
break;
default:
panic("clear_nhwindow: unknown window type [%d]\n", wp->type);
panic("clear_nhwindow: unknown window type [%d]", wp->type);
break;
}
}
@@ -775,7 +775,7 @@ X11_display_nhwindow(window, blocking)
display_text_window(wp, blocking); /* pop up text window */
break;
default:
panic("display_nhwindow: unknown window type [%d]\n", wp->type);
panic("display_nhwindow: unknown window type [%d]", wp->type);
break;
}
}
@@ -899,7 +899,7 @@ void X11_outrip(window, how)
if (wp->type == NHW_TEXT) {
wp->text_information->is_rip = TRUE;
} else {
panic("ripout on non-text window (window type [%d])\n", wp->type);
panic("ripout on non-text window (window type [%d])", wp->type);
}
calculate_rip_text(how);