summaryrefslogtreecommitdiffstats
path: root/sys/boot/common/load_aout.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1998-10-12 09:05:12 +0000
committerpeter <peter@FreeBSD.org>1998-10-12 09:05:12 +0000
commit8834a794bd6a3e6be0f694ad55ea6f9625626e58 (patch)
treedf87e78a6ac65a61fa59f8d9ab61a0dba35c14d1 /sys/boot/common/load_aout.c
parent92850399d480f981fa11016d66ed9f8b641dd848 (diff)
downloadFreeBSD-src-8834a794bd6a3e6be0f694ad55ea6f9625626e58.zip
FreeBSD-src-8834a794bd6a3e6be0f694ad55ea6f9625626e58.tar.gz
Only print filename and entry address for the kernel itself. The rest
have a meaningless entry as they are relocatable.
Diffstat (limited to 'sys/boot/common/load_aout.c')
-rw-r--r--sys/boot/common/load_aout.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/boot/common/load_aout.c b/sys/boot/common/load_aout.c
index b99ea92..3a5d34d 100644
--- a/sys/boot/common/load_aout.c
+++ b/sys/boot/common/load_aout.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: load_aout.c,v 1.8 1998/10/02 16:22:26 msmith Exp $
+ * $Id: load_aout.c,v 1.9 1998/10/09 23:15:39 peter Exp $
*/
#include <sys/param.h>
@@ -149,7 +149,8 @@ aout_loadmodule(char *filename, vm_offset_t dest, struct loaded_module **result)
addr += pad;
}
mp->m_addr = addr; /* save the aligned load address */
- printf("%s at %p\n", filename, (void *) addr);
+ if (kernel)
+ printf("%s at %p\n", filename, (void *) addr);
mp->m_size = aout_loadimage(mp, fd, addr, &ehdr, kernel);
if (mp->m_size == 0)
OpenPOWER on IntegriCloud