Calls to panic in the kernel.
Posted Jul 22, 2003 3:23 UTC (Tue) by StevenCole
Parent article: 2003 Kernel Summit: High Availability
Lars pointed out that there are over 1200 calls to panic() in the kernel.
A panic which shouldn't happen gives programmers
the opportunity to write a message which should (almost) never
see the light of day. Some examples:
panic("Damn it Jim! I'm a doctor, not a programmer! "
"Oh, wait a sec, I am a programmer. "
"And, who's Jim?!?!\n"
"Arrgghh! We've done it again!\n");
In the recent past, kernel/suspend.c had this:
if (pos%PAGE_SIZE) panic("Sorry, dave, I can't let you do that!\n");
to post comments)