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");
panic("Foooooooood fight!");In the recent past, kernel/suspend.c had this:
if (pos%PAGE_SIZE) panic("Sorry, dave, I can't let you do that!\n");
Copyright © 2018, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds