From owner-svn-src-head@FreeBSD.ORG Sun Jun 2 23:06:35 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 591C916F; Sun, 2 Jun 2013 23:06:35 +0000 (UTC) (envelope-from dteske@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 4A1141C61; Sun, 2 Jun 2013 23:06:35 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r52N6YxI089415; Sun, 2 Jun 2013 23:06:34 GMT (envelope-from dteske@svn.freebsd.org) Received: (from dteske@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r52N6YkZ089414; Sun, 2 Jun 2013 23:06:34 GMT (envelope-from dteske@svn.freebsd.org) Message-Id: <201306022306.r52N6YkZ089414@svn.freebsd.org> From: Devin Teske Date: Sun, 2 Jun 2013 23:06:34 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r251271 - head/usr.sbin/bsdconfig/share/media X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Jun 2013 23:06:35 -0000 Author: dteske Date: Sun Jun 2 23:06:33 2013 New Revision: 251271 URL: http://svnweb.freebsd.org/changeset/base/251271 Log: Add some additional debugging to the common media library. Modified: head/usr.sbin/bsdconfig/share/media/common.subr Modified: head/usr.sbin/bsdconfig/share/media/common.subr ============================================================================== --- head/usr.sbin/bsdconfig/share/media/common.subr Sun Jun 2 23:05:01 2013 (r251270) +++ head/usr.sbin/bsdconfig/share/media/common.subr Sun Jun 2 23:06:33 2013 (r251271) @@ -50,6 +50,7 @@ MOUNTPOINT=/dist # f_media_open() { + f_dprintf "f_media_open: Verifying and initiliazing media device" { # Verify and initialize device media if-defined f_struct device_media && f_media_verify && @@ -64,6 +65,7 @@ f_media_open() # f_media_close() { + f_dprintf "f_media_close: Shutting down media device" f_struct device_media && f_device_shutdown media f_struct_free device_media @@ -77,6 +79,7 @@ f_media_close() # f_media_verify() { + f_dprintf "f_media_verify: Verifying media device" f_struct device_media || f_media_get_type } @@ -86,8 +89,12 @@ f_media_verify() # f_media_generic_get() { - local base="$1" file="$2" rel path + local base="$1" file="$2" + local fname=f_media_generic_get + f_dprintf "%s: base=[%s] files=[%s]" $fname "$base" "$file" + + local rel path f_getvar $VAR_RELNAME rel for path in \ "$base/$file" \ @@ -96,6 +103,7 @@ f_media_generic_get() "$base/$rel/$file" \ ; do if [ -f "$path" -a -r "$path" ]; then + f_dprintf "%s: file exists path=[%s]" $fname "$path" cat "$path" return fi