Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/hpc/include fix build problem.



details:   https://anonhg.NetBSD.org/src/rev/66ea998027db
branches:  trunk
changeset: 756952:66ea998027db
user:      chs <chs%NetBSD.org@localhost>
date:      Sun Aug 08 16:27:30 2010 +0000

description:
fix build problem.

diffstat:

 sys/arch/hpc/include/debug.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 83ddf2d78af0 -r 66ea998027db sys/arch/hpc/include/debug.h
--- a/sys/arch/hpc/include/debug.h      Sun Aug 08 16:26:47 2010 +0000
+++ b/sys/arch/hpc/include/debug.h      Sun Aug 08 16:27:30 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: debug.h,v 1.9 2008/04/28 20:23:20 martin Exp $ */
+/*     $NetBSD: debug.h,v 1.10 2010/08/08 16:27:30 chs Exp $   */
 
 /*-
  * Copyright (c) 1999-2002 The NetBSD Foundation, Inc.
@@ -114,8 +114,8 @@
 void dbg_banner_line(void);
 #define dbg_banner_function()                                          \
 {                                                                      \
-       const char funcname[] = __func__;                               \
-       dbg_banner_title(funcname, sizeof funcname);                    \
+       const char *funcname = __func__;                                \
+       dbg_banner_title(funcname, strlen (funcname));                  \
 }
 
 /* HPC_DEBUG_LCD */



Home | Main Index | Thread Index | Old Index