From owner-svn-src-projects@FreeBSD.ORG Wed Apr 1 05:46:58 2015 Return-Path: Delivered-To: svn-src-projects@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A412C3E1; Wed, 1 Apr 2015 05:46:58 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 76CB51BE; Wed, 1 Apr 2015 05:46:58 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t315kwJD062601; Wed, 1 Apr 2015 05:46:58 GMT (envelope-from rpaulo@FreeBSD.org) Received: (from rpaulo@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t315kwvu062600; Wed, 1 Apr 2015 05:46:58 GMT (envelope-from rpaulo@FreeBSD.org) Message-Id: <201504010546.t315kwvu062600@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: rpaulo set sender to rpaulo@FreeBSD.org using -f From: Rui Paulo Date: Wed, 1 Apr 2015 05:46:58 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r280946 - projects/lua-bootloader/sys/boot/lua X-SVN-Group: projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Apr 2015 05:46:58 -0000 Author: rpaulo Date: Wed Apr 1 05:46:57 2015 New Revision: 280946 URL: https://svnweb.freebsd.org/changeset/base/280946 Log: config.lua: improve wording. Modified: projects/lua-bootloader/sys/boot/lua/config.lua Modified: projects/lua-bootloader/sys/boot/lua/config.lua ============================================================================== --- projects/lua-bootloader/sys/boot/lua/config.lua Wed Apr 1 05:41:18 2015 (r280945) +++ projects/lua-bootloader/sys/boot/lua/config.lua Wed Apr 1 05:46:57 2015 (r280946) @@ -177,7 +177,7 @@ end function config.parse(name, silent) local f = io.open(name); if f == nil then - if not silent then print("Failed to open config : '" .. name.."'\n"); end + if not silent then print("Failed to open config: '" .. name.."'\n"); end return false; end @@ -187,7 +187,7 @@ function config.parse(name, silent) text, r = io.read(f); if text == nil then - if not silent then print("Failed to read confif : '" .. name.."'\n"); end + if not silent then print("Failed to read config: '" .. name.."'\n"); end return false; end @@ -314,14 +314,12 @@ function config.load(file) end end - print("Loading kernel . . .\n"); + print("Loading kernel...\n"); config.loadkernel(); - print("Loading configurations . . .\n"); - if config.loadmod(modules) then - print("Configurations loaded successful!\n"); - else - print("Configurations load failed!\n"); + print("Loading configurations...\n"); + if not config.loadmod(modules) then + print("Could not load configurations!\n"); end end @@ -329,7 +327,7 @@ function config.reload(kernel) local res = 1; -- unload all modules - print("unloading modules . . .\n"); + print("Unloading modules...\n"); loader.perform("unload"); if kernel ~= nil then @@ -340,7 +338,7 @@ function config.reload(kernel) -- failed to load kernel or it is nil -- then load default if res == 1 then - print("loading default kernel\n"); + print("Loading default kernel...\n"); config.loadkernel(); end