Mon Aug 9 23:09:00 2010 UTC ()
Use empty do/while for no-op.


(uwe)
diff -r1.4 -r1.5 src/sys/arch/hpcsh/include/debug.h

cvs diff -r1.4 -r1.5 src/sys/arch/hpcsh/include/debug.h (expand / switch to unified diff)

--- src/sys/arch/hpcsh/include/debug.h 2008/04/28 20:23:22 1.4
+++ src/sys/arch/hpcsh/include/debug.h 2010/08/09 23:08:59 1.5
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: debug.h,v 1.4 2008/04/28 20:23:22 martin Exp $ */ 1/* $NetBSD: debug.h,v 1.5 2010/08/09 23:08:59 uwe Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 1999-2002 The NetBSD Foundation, Inc. 4 * Copyright (c) 1999-2002 The NetBSD Foundation, Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * This code is derived from software contributed to The NetBSD Foundation 7 * This code is derived from software contributed to The NetBSD Foundation
8 * by UCHIYAMA Yasushi. 8 * by UCHIYAMA Yasushi.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -24,32 +24,32 @@ @@ -24,32 +24,32 @@
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE. 29 * POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31 31
32#define USE_HPC_DPRINTF 32#define USE_HPC_DPRINTF
33#define __DPRINTF_EXT 33#define __DPRINTF_EXT
34#include <hpc/include/debug.h> 34#include <hpc/include/debug.h>
35 35
36#include "debug_hpc.h" 36#include "debug_hpc.h"
 37
37/* 38/*
38 * interrupt monitor 39 * interrupt monitor
39 */ 40 */
40#ifdef HPC_DEBUG_INTERRUPT_MONITOR 41#ifdef HPC_DEBUG_INTERRUPT_MONITOR
41enum heart_beat { 42enum heart_beat {
42 HEART_BEAT_BLACK = 0, 43 HEART_BEAT_BLACK = 0,
43 HEART_BEAT_RED, 44 HEART_BEAT_RED,
44 HEART_BEAT_GREEN, 45 HEART_BEAT_GREEN,
45 HEART_BEAT_YELLOW, 46 HEART_BEAT_YELLOW,
46 HEART_BEAT_BLUE, 47 HEART_BEAT_BLUE,
47 HEART_BEAT_MAGENTA, 48 HEART_BEAT_MAGENTA,
48 HEART_BEAT_CYAN, 49 HEART_BEAT_CYAN,
49 HEART_BEAT_WHITE, 50 HEART_BEAT_WHITE,
50}; 51};
51void __dbg_heart_beat(enum heart_beat); 52void __dbg_heart_beat(enum heart_beat);
52#else 53#else
53#define __dbg_heart_beat(x) ((void)0) 54#define __dbg_heart_beat(x) do {} while (/* CONSTCOND */ 0)
54#endif /* HPC_DEBUG_INTERRUPT_MONITOR */ 55#endif
55