From owner-svn-src-head@FreeBSD.ORG Mon Feb 20 01:05:17 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A3BA1106564A; Mon, 20 Feb 2012 01:05:17 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 902A98FC08; Mon, 20 Feb 2012 01:05:17 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q1K15HCF024039; Mon, 20 Feb 2012 01:05:17 GMT (envelope-from delphij@svn.freebsd.org) Received: (from delphij@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q1K15HRB024037; Mon, 20 Feb 2012 01:05:17 GMT (envelope-from delphij@svn.freebsd.org) Message-Id: <201202200105.q1K15HRB024037@svn.freebsd.org> From: Xin LI Date: Mon, 20 Feb 2012 01:05:17 +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: r231923 - head/sys/kern X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 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: Mon, 20 Feb 2012 01:05:17 -0000 Author: delphij Date: Mon Feb 20 01:05:17 2012 New Revision: 231923 URL: http://svn.freebsd.org/changeset/base/231923 Log: Use uprintf instead of printf for the reason why a kernel module can not be loaded. This way, the administrator can get response immediately from the shell session rather than relying on dmesg. MFC after: 1 month Modified: head/sys/kern/kern_linker.c Modified: head/sys/kern/kern_linker.c ============================================================================== --- head/sys/kern/kern_linker.c Mon Feb 20 00:56:32 2012 (r231922) +++ head/sys/kern/kern_linker.c Mon Feb 20 01:05:17 2012 (r231923) @@ -2115,7 +2115,7 @@ linker_load_dependencies(linker_file_t l } error = linker_load_module(NULL, modname, lf, verinfo, NULL); if (error) { - printf("KLD %s: depends on %s - not available or" + uprintf("KLD %s: depends on %s - not available or" " version mismatch\n", lf->filename, modname); break; }