From owner-svn-src-all@FreeBSD.ORG Tue Jul 22 04:47:20 2014 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 416384CA; Tue, 22 Jul 2014 04:47:20 +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 2E71628EC; Tue, 22 Jul 2014 04:47:20 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s6M4lK9P052017; Tue, 22 Jul 2014 04:47:20 GMT (envelope-from sbruno@svn.freebsd.org) Received: (from sbruno@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s6M4lKVJ052016; Tue, 22 Jul 2014 04:47:20 GMT (envelope-from sbruno@svn.freebsd.org) Message-Id: <201407220447.s6M4lKVJ052016@svn.freebsd.org> From: Sean Bruno Date: Tue, 22 Jul 2014 04:47:20 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r268978 - head/sys/boot/userboot/test X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18 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: Tue, 22 Jul 2014 04:47:20 -0000 Author: sbruno Date: Tue Jul 22 04:47:19 2014 New Revision: 268978 URL: http://svnweb.freebsd.org/changeset/base/268978 Log: copyin/copyout should return 0 if they are truly emulating copyin/copyout behavior. remove stray %s in printf rewrite printf to display 64bit type without warning. Modified: head/sys/boot/userboot/test/test.c Modified: head/sys/boot/userboot/test/test.c ============================================================================== --- head/sys/boot/userboot/test/test.c Tue Jul 22 04:39:32 2014 (r268977) +++ head/sys/boot/userboot/test/test.c Tue Jul 22 04:47:19 2014 (r268978) @@ -36,6 +36,7 @@ #include #include #include +#include #include #include #include @@ -292,6 +293,7 @@ test_copyin(void *arg, const void *from, if (to + size > image_size) size = image_size - to; memcpy(&image[to], from, size); + return(0); } int @@ -304,6 +306,7 @@ test_copyout(void *arg, uint64_t from, v if (from + size > image_size) size = image_size - from; memcpy(to, &image[from], size); + return(0); } void @@ -333,7 +336,7 @@ test_setgdt(void *arg, uint64_t v, size_ void test_exec(void *arg, uint64_t pc) { - printf("Execute at 0x%llx\n", pc); + printf("Execute at 0x%"PRIu64"\n", pc); test_exit(arg, 0); } @@ -411,7 +414,7 @@ void usage() { - printf("usage: %s [-d ] [-h \n"); + printf("usage: [-d ] [-h \n"); exit(1); }