From owner-svn-src-stable-9@FreeBSD.ORG Sat Mar 3 00:36:31 2012 Return-Path: Delivered-To: svn-src-stable-9@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7E651106566B; Sat, 3 Mar 2012 00:36:31 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 6D5B18FC08; Sat, 3 Mar 2012 00:36:31 +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 q230aVv6054687; Sat, 3 Mar 2012 00:36:31 GMT (envelope-from jkim@svn.freebsd.org) Received: (from jkim@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q230aVAC054685; Sat, 3 Mar 2012 00:36:31 GMT (envelope-from jkim@svn.freebsd.org) Message-Id: <201203030036.q230aVAC054685@svn.freebsd.org> From: Jung-uk Kim Date: Sat, 3 Mar 2012 00:36:31 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r232417 - stable/9/sys/boot/i386/libi386 X-BeenThere: svn-src-stable-9@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 9-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Mar 2012 00:36:31 -0000 Author: jkim Date: Sat Mar 3 00:36:30 2012 New Revision: 232417 URL: http://svn.freebsd.org/changeset/base/232417 Log: MFC: r232309 Fix a long standing bug. The caller expects a non-zero value for success. Luckily keyboard probing was turned off by default from the first revision. Modified: stable/9/sys/boot/i386/libi386/vidconsole.c Directory Properties: stable/9/sys/ (props changed) stable/9/sys/boot/ (props changed) Modified: stable/9/sys/boot/i386/libi386/vidconsole.c ============================================================================== --- stable/9/sys/boot/i386/libi386/vidconsole.c Sat Mar 3 00:11:46 2012 (r232416) +++ stable/9/sys/boot/i386/libi386/vidconsole.c Sat Mar 3 00:36:30 2012 (r232417) @@ -623,10 +623,10 @@ probe_keyboard(void) #endif if (i == KBD_ECHO) { /* got the right answer */ - return (0); + return (1); } } - return (1); + return (0); } #endif /* KEYBOARD_PROBE */