4.104.115
Last change
on this file since da42259 was
c8f7b4e6,
checked in by Joel Sherrill <joel.sherrill@…>, on 11/26/08 at 16:38:06
|
2008-11-26 Joel Sherrill <joel.sherrill@…>
- score/Makefile.am, score/include/rtems/score/watchdog.h: Add
_Watchdog_Report and _Watchdog_Report_chain as debug assist routines.
They are NOT to be used in directives.
- score/src/watchdogreport.c, score/src/watchdogreportchain.c:
New files.
|
-
Property mode set to
100644
|
File size:
779 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file watchdogreport.c |
---|
3 | * |
---|
4 | * This should only be used for debugging. |
---|
5 | */ |
---|
6 | |
---|
7 | /* COPYRIGHT (c) 1989-2008. |
---|
8 | * On-Line Applications Research Corporation (OAR). |
---|
9 | * |
---|
10 | * The license and distribution terms for this file may be |
---|
11 | * found in the file LICENSE in this distribution or at |
---|
12 | * http://www.rtems.com/license/LICENSE. |
---|
13 | * |
---|
14 | * $Id$ |
---|
15 | */ |
---|
16 | |
---|
17 | #if HAVE_CONFIG_H |
---|
18 | #include "config.h" |
---|
19 | #endif |
---|
20 | |
---|
21 | #include <rtems/system.h> |
---|
22 | #include <rtems/score/watchdog.h> |
---|
23 | #include <rtems/bspIo.h> |
---|
24 | |
---|
25 | void _Watchdog_Report( |
---|
26 | const char *name, |
---|
27 | Watchdog_Control *watch |
---|
28 | ) |
---|
29 | { |
---|
30 | printk( |
---|
31 | "%s%s%4d %5d %p %p 0x%08x %p\n", |
---|
32 | ((name) ? name : ""), |
---|
33 | ((name) ? " " : ""), |
---|
34 | watch->delta_interval, |
---|
35 | watch->initial, |
---|
36 | watch, |
---|
37 | watch->routine, |
---|
38 | watch->id, |
---|
39 | watch->user_data |
---|
40 | ); |
---|
41 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.