From owner-p4-projects@FreeBSD.ORG Sun Jan 24 12:24:18 2010 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 1B29110656B3; Sun, 24 Jan 2010 12:24:18 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D382310656B1 for ; Sun, 24 Jan 2010 12:24:17 +0000 (UTC) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id C030C8FC1B for ; Sun, 24 Jan 2010 12:24:17 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o0OCOHok038809 for ; Sun, 24 Jan 2010 12:24:17 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o0OCOHBR038807 for perforce@freebsd.org; Sun, 24 Jan 2010 12:24:17 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Sun, 24 Jan 2010 12:24:17 GMT Message-Id: <201001241224.o0OCOHBR038807@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Precedence: bulk Cc: Subject: PERFORCE change 173616 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jan 2010 12:24:18 -0000 http://p4web.freebsd.org/chv.cgi?CH=173616 Change 173616 by rwatson@rwatson_vimage_client on 2010/01/24 12:23:33 Trim slightly verbose printf in capability code. Affected files ... .. //depot/projects/trustedbsd/capabilities/src/sys/kern/sys_capability.c#29 edit Differences ... ==== //depot/projects/trustedbsd/capabilities/src/sys/kern/sys_capability.c#29 (text+ko) ==== @@ -50,7 +50,7 @@ #include "opt_capabilities.h" #include -__FBSDID("$P4: //depot/projects/trustedbsd/capabilities/src/sys/kern/sys_capability.c#28 $"); +__FBSDID("$P4: //depot/projects/trustedbsd/capabilities/src/sys/kern/sys_capability.c#29 $"); #include #include @@ -153,11 +153,8 @@ cap_check(struct capability *c, cap_rights_t rights) { - if ((c->cap_rights | rights) != c->cap_rights) { - printf("ENOTCAPABLE: %016x < %016x\n", - (unsigned int) c->cap_rights, (unsigned int) rights); + if ((c->cap_rights | rights) != c->cap_rights) return (ENOTCAPABLE); - } return (0); }