Module Name: src
Committed By: kiyohara
Date: Sun Aug 8 09:00:16 UTC 2010
Modified Files:
src/sys/arch/evbarm/gumstix: gumstix_machdep.c
Log Message:
Use EVBARM_BOARDTYPE to print 'NetBSD/evbarm(*)'. That defined to
std.gumstix and std.overo.
To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/evbarm/gumstix/gumstix_machdep.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/evbarm/gumstix/gumstix_machdep.c
diff -u src/sys/arch/evbarm/gumstix/gumstix_machdep.c:1.28 src/sys/arch/evbarm/gumstix/gumstix_machdep.c:1.29
--- src/sys/arch/evbarm/gumstix/gumstix_machdep.c:1.28 Sat Jul 10 08:26:34 2010
+++ src/sys/arch/evbarm/gumstix/gumstix_machdep.c Sun Aug 8 09:00:15 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: gumstix_machdep.c,v 1.28 2010/07/10 08:26:34 kiyohara Exp $ */
+/* $NetBSD: gumstix_machdep.c,v 1.29 2010/08/08 09:00:15 kiyohara Exp $ */
/*
* Copyright (C) 2005, 2006, 2007 WIDE Project and SOUM Corporation.
* All rights reserved.
@@ -137,6 +137,7 @@
* boards using RedBoot firmware.
*/
+#include "opt_evbarm_boardtype.h"
#include "opt_cputypes.h"
#include "opt_gumstix.h"
#include "opt_ddb.h"
@@ -578,15 +579,9 @@
#endif
/* Talk to the user */
- printf("\nNetBSD/evbarm (%s) booting ...\n",
-#if defined(GUMSTIX)
- "gumstix"
-#elif defined(OVERO)
- "overo"
-#else
- "???"
-#endif
- );
+#define BDSTR(s) _BDSTR(s)
+#define _BDSTR(s) #s
+ printf("\nNetBSD/evbarm (" BDSTR(EVBARM_BOARDTYPE) ") booting ...\n");
/* Read system serial */
#if defined(GUMSTIX)