From owner-cvs-src@FreeBSD.ORG Fri May 12 02:01:39 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7AC2716A401; Fri, 12 May 2006 02:01:39 +0000 (UTC) (envelope-from benno@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D4BE743D78; Fri, 12 May 2006 02:01:38 +0000 (GMT) (envelope-from benno@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k4C21cWa020004; Fri, 12 May 2006 02:01:38 GMT (envelope-from benno@repoman.freebsd.org) Received: (from benno@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k4C21cnK020003; Fri, 12 May 2006 02:01:38 GMT (envelope-from benno) Message-Id: <200605120201.k4C21cnK020003@repoman.freebsd.org> From: Benno Rice Date: Fri, 12 May 2006 02:01:38 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/conf options src/sys/kern init_main.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 May 2006 02:01:40 -0000 benno 2006-05-12 02:01:38 UTC FreeBSD src repository Modified files: sys/conf options sys/kern init_main.c Log: Add a new kernel config option, VERBOSE_SYSINIT. When porting FreeBSD to a new platform, one of the more useful things to do is get mi_startup() to let you know which SYSINIT it's up to. Most people tend to whack a printf in the SYSINIT loop to print the address of the function it's about to call. Going one better, jhb made a version that uses DDB to look up the name of the function and print that instead. This version is essentially his with the addition of some ifdeffery to make it optional and to allow it to work (although using only the function address, not the symbol) if you forgot to enable DDB. All the cool bits by: jhb Approved by: scottl, rink, cognet, imp Revision Changes Path 1.541 +1 -0 src/sys/conf/options 1.263 +45 -0 src/sys/kern/init_main.c