4.115
Last change
on this file since 62181b21 was
9b4422a2,
checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24
|
Remove All CVS Id Strings Possible Using a Script
Script does what is expected and tries to do it as
smartly as possible.
+ remove occurrences of two blank comment lines
next to each other after Id string line removed.
+ remove entire comment blocks which only exited to
contain CVS Ids
+ If the processing left a blank line at the top of
a file, it was removed.
|
-
Property mode set to
100644
|
File size:
1.1 KB
|
Line | |
---|
1 | /** |
---|
2 | * @file watchdogreportchain.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 | |
---|
15 | #if HAVE_CONFIG_H |
---|
16 | #include "config.h" |
---|
17 | #endif |
---|
18 | |
---|
19 | #include <rtems/system.h> |
---|
20 | #include <rtems/score/watchdog.h> |
---|
21 | #include <rtems/score/isr.h> |
---|
22 | #include <rtems/bspIo.h> |
---|
23 | |
---|
24 | void _Watchdog_Report_chain( |
---|
25 | const char *name, |
---|
26 | Chain_Control *header |
---|
27 | ) |
---|
28 | { |
---|
29 | ISR_Level level; |
---|
30 | Chain_Node *node; |
---|
31 | |
---|
32 | _ISR_Disable( level ); |
---|
33 | printk( "Watchdog Chain: %s %p\n", name, header ); |
---|
34 | if ( !_Chain_Is_empty( header ) ) { |
---|
35 | for ( node = _Chain_First( header ) ; |
---|
36 | node != _Chain_Tail(header) ; |
---|
37 | node = node->next ) |
---|
38 | { |
---|
39 | Watchdog_Control *watch = (Watchdog_Control *) node; |
---|
40 | |
---|
41 | _Watchdog_Report( NULL, watch ); |
---|
42 | } |
---|
43 | printk( "== end of %s \n", name ); |
---|
44 | } else { |
---|
45 | printk( "Chain is empty\n" ); |
---|
46 | } |
---|
47 | _ISR_Enable( level ); |
---|
48 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.