From owner-svn-src-all@FreeBSD.ORG Thu Sep 10 18:33:09 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 009641065679; Thu, 10 Sep 2009 18:33:09 +0000 (UTC) (envelope-from n_hibma@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id CA1BA8FC1A; Thu, 10 Sep 2009 18:33:08 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n8AIX8JO027490; Thu, 10 Sep 2009 18:33:08 GMT (envelope-from n_hibma@svn.freebsd.org) Received: (from n_hibma@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n8AIX8p6027487; Thu, 10 Sep 2009 18:33:08 GMT (envelope-from n_hibma@svn.freebsd.org) Message-Id: <200909101833.n8AIX8p6027487@svn.freebsd.org> From: Nick Hibma Date: Thu, 10 Sep 2009 18:33:08 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r197072 - in head/sys: dev/ichwd netsmb X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 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: Thu, 10 Sep 2009 18:33:09 -0000 Author: n_hibma Date: Thu Sep 10 18:33:08 2009 New Revision: 197072 URL: http://svn.freebsd.org/changeset/base/197072 Log: Don't print out a message on loading a module. 'kldload -v' and 'kldstat | grep ' can be used instead. Put a message behind bootverbose as ichwd0: on isa0 ichwd0: Intel ICH6M watchdog timer (ICH6 or equivalent) does not make a lot of sense. MFC after: 1 week Modified: head/sys/dev/ichwd/ichwd.c head/sys/netsmb/smb_dev.c Modified: head/sys/dev/ichwd/ichwd.c ============================================================================== --- head/sys/dev/ichwd/ichwd.c Thu Sep 10 18:24:59 2009 (r197071) +++ head/sys/dev/ichwd/ichwd.c Thu Sep 10 18:33:08 2009 (r197072) @@ -465,7 +465,7 @@ ichwd_attach(device_t dev) if (ichwd_clear_noreboot(sc) != 0) goto fail; - device_printf(dev, "%s (ICH%d or equivalent)\n", + ichwd_verbose_printf(dev, "%s (ICH%d or equivalent)\n", device_get_desc(dev), sc->ich_version); /* @@ -553,23 +553,4 @@ static driver_t ichwd_driver = { sizeof(struct ichwd_softc), }; -static int -ichwd_modevent(module_t mode, int type, void *data) -{ - int error = 0; - - switch (type) { - case MOD_LOAD: - printf("ichwd module loaded\n"); - break; - case MOD_UNLOAD: - printf("ichwd module unloaded\n"); - break; - case MOD_SHUTDOWN: - printf("ichwd module shutting down\n"); - break; - } - return (error); -} - -DRIVER_MODULE(ichwd, isa, ichwd_driver, ichwd_devclass, ichwd_modevent, NULL); +DRIVER_MODULE(ichwd, isa, ichwd_driver, ichwd_devclass, NULL, NULL); Modified: head/sys/netsmb/smb_dev.c ============================================================================== --- head/sys/netsmb/smb_dev.c Thu Sep 10 18:24:59 2009 (r197071) +++ head/sys/netsmb/smb_dev.c Thu Sep 10 18:33:08 2009 (r197072) @@ -352,7 +352,6 @@ nsmb_dev_load(module_t mod, int cmd, voi } clone_setup(&nsmb_clones); nsmb_dev_tag = EVENTHANDLER_REGISTER(dev_clone, nsmb_dev_clone, 0, 1000); - printf("netsmb_dev: loaded\n"); break; case MOD_UNLOAD: smb_iod_done(); @@ -363,7 +362,6 @@ nsmb_dev_load(module_t mod, int cmd, voi drain_dev_clone_events(); clone_cleanup(&nsmb_clones); destroy_dev_drain(&nsmb_cdevsw); - printf("netsmb_dev: unloaded\n"); break; default: error = EINVAL;