[riot-devel] Usefulness of a panic() function?

Ludwig Ortmann ludwig.ortmann at fu-berlin.de
Mon Jan 27 13:37:39 CET 2014

Hi Kévin,

On Mon, Jan 27, 2014 at 01:24:52PM +0100, ROUSSEL Kévin wrote:
> I was wondering, if a panic() function (like the one present in Unix
> systems, see http://en.wikipedia.org/wiki/Kernel_panic) wouldn't be an
> useful addition for low-level system developers: the idea is to freeze the
> system in the state that has provoked an unrecoverable error, with an error
> message.
> It may be helpful when debugging the OS kernel, or (very) low-level
> code--like hardware drivers, or network MAC layer... Do you agree?

Yes - although it might make sense to reboot depending on the
deployment and situation. A good case for the DEVELHELP macro ;-) (Not
as part of panic, but as part of the code that calls it..)

Cheers, Ludwig

More information about the devel mailing list