summaryrefslogtreecommitdiff
path: root/usr/src/uts/sun4/os/forthdebug.c
diff options
context:
space:
mode:
authormb158278 <none@none>2007-11-05 11:24:19 -0800
committermb158278 <none@none>2007-11-05 11:24:19 -0800
commit11021a81a7bbd25468cdfeca85665606b71488f6 (patch)
treedcdeac5833ad8c9919fce6e8c178d084b1d9f037 /usr/src/uts/sun4/os/forthdebug.c
parent981a172d53aeb81520fcfecf6ab2615277c7bd18 (diff)
downloadillumos-joyent-11021a81a7bbd25468cdfeca85665606b71488f6.tar.gz
6597405 'obpdebug' is set to 1 on Serengeti and Lightweight8 running Solaris10.
Diffstat (limited to 'usr/src/uts/sun4/os/forthdebug.c')
-rw-r--r--usr/src/uts/sun4/os/forthdebug.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr/src/uts/sun4/os/forthdebug.c b/usr/src/uts/sun4/os/forthdebug.c
index d36a1c1dba..1da6634715 100644
--- a/usr/src/uts/sun4/os/forthdebug.c
+++ b/usr/src/uts/sun4/os/forthdebug.c
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -20,7 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -101,7 +100,8 @@ forthdebug_init(void)
struct _buf *file;
if (!forthdebug_supported) {
- (void) modload("misc", "obpsym");
+ if (obpdebug)
+ (void) modload("misc", "obpsym");
return;
}
@@ -117,7 +117,7 @@ forthdebug_init(void)
i = BOP_FSTAT(bootops, file->_fd, &bstat);
if (i || !bstat.st_size) {
cmn_err(CE_CONT, "Can't stat %s stat=%x sz=%llx\n",
- FDEBUGFILE, i, (long long)bstat.st_size);
+ FDEBUGFILE, i, (long long)bstat.st_size);
goto err_stat;
}
@@ -153,7 +153,7 @@ forthdebug_init(void)
*buf_p = '\0';
#ifdef DEBUG
cmn_err(CE_CONT, "symbol lookup service (%ld bytes)\n",
- (long)(buf_p - fth_buf));
+ (long)(buf_p - fth_buf));
#endif /* DEBUG */
prom_interpret(fth_buf, 0, 0, 0, 0, 0);
goto done;