Changeset 378b5c2 in rtems-libbsd


Ignore:
Timestamp:
May 9, 2017, 12:09:49 PM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
fd86c091b97759106da7355ce1dd81ebe030e285, f020f08430150c1656a0ad0a1de13699db9b980b
Children:
83574df
Parents:
9128d20
git-author:
Sebastian Huber <sebastian.huber@…> (05/09/17 12:09:49)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/10/17 06:33:46)
Message:

Use LOG_EMERG for panic()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemsbsd/rtems/rtems-kernel-panic.c

    r9128d20 r378b5c2  
    88
    99/*
    10  * Copyright (c) 2009-2013 embedded brains GmbH.  All rights reserved.
     10 * Copyright (c) 2009, 2017 embedded brains GmbH.  All rights reserved.
    1111 *
    1212 *  embedded brains GmbH
     
    4343#include <sys/param.h>
    4444#include <sys/types.h>
     45#include <sys/syslog.h>
    4546#include <sys/systm.h>
    4647
     
    5253        va_list ap;
    5354
    54         printf("\n*** BSD PANIC *** ");
    55 
    5655        va_start(ap, fmt);
    57         vprintf(fmt, ap);
     56        vlog(LOG_EMERG, fmt, ap);
    5857        va_end(ap);
    59 
    60         printf("\n");
    6158
    6259        rtems_task_suspend(RTEMS_SELF);
Note: See TracChangeset for help on using the changeset viewer.