From owner-svn-src-all@FreeBSD.ORG Tue Aug 5 23:41:40 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AF4CAB50 for ; Tue, 5 Aug 2014 23:41:40 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 84B7327B4 for ; Tue, 5 Aug 2014 23:41:40 +0000 (UTC) Received: from marcel (uid 782) (envelope-from marcel@FreeBSD.org) id 5eeb by svn.freebsd.org (DragonFly Mail Agent v0.9+); Tue, 05 Aug 2014 23:41:40 +0000 From: Marcel Moolenaar Date: Tue, 5 Aug 2014 23:41:40 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r269614 - head/sys/boot/common X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-Id: <53e16bb4.5eeb.2ac18d4c@svn.freebsd.org> X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Aug 2014 23:41:40 -0000 Author: marcel Date: Tue Aug 5 23:41:40 2014 New Revision: 269614 URL: http://svnweb.freebsd.org/changeset/base/269614 Log: In file_loadraw() print the name of the file as well as its size so that we know what file is being loaded and how big the file is once complete. This has ELF modules and disk images emit the same output. Modified: head/sys/boot/common/module.c Modified: head/sys/boot/common/module.c ============================================================================== --- head/sys/boot/common/module.c Tue Aug 5 23:39:35 2014 (r269613) +++ head/sys/boot/common/module.c Tue Aug 5 23:41:40 2014 (r269614) @@ -37,6 +37,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include "bootstrap.h" @@ -387,6 +388,8 @@ file_loadraw(char *name, char *type) if (archsw.arch_loadaddr != NULL) loadaddr = archsw.arch_loadaddr(LOAD_RAW, name, loadaddr); + printf("%s ", name); + laddr = loadaddr; for (;;) { /* read in 4k chunks; size is not really important */ @@ -401,7 +404,9 @@ file_loadraw(char *name, char *type) } laddr += got; } - + + printf("size=%#jx\n", (uintmax_t)(laddr - loadaddr)); + /* Looks OK so far; create & populate control structure */ fp = file_alloc(); fp->f_name = strdup(name);