diff options
author | peter <peter@FreeBSD.org> | 1998-10-12 09:05:12 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1998-10-12 09:05:12 +0000 |
commit | 8834a794bd6a3e6be0f694ad55ea6f9625626e58 (patch) | |
tree | df87e78a6ac65a61fa59f8d9ab61a0dba35c14d1 /sys/boot/common | |
parent | 92850399d480f981fa11016d66ed9f8b641dd848 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/boot/common/load_aout.c | 5 |
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) |