Date: Sun, 24 Jan 2010 12:24:17 GMT From: Robert Watson <rwatson@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 173616 for review Message-ID: <201001241224.o0OCOHBR038807@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <sys/cdefs.h> -__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 <sys/param.h> #include <sys/capability.h> @@ -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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001241224.o0OCOHBR038807>