From owner-p4-projects Fri Aug 16 14:43:28 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 38C4137B405; Fri, 16 Aug 2002 14:43:20 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 92DBF37B400 for ; Fri, 16 Aug 2002 14:43:19 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4ED5143E77 for ; Fri, 16 Aug 2002 14:43:19 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from freefall.freebsd.org (perforce@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7GLhJJU076206 for ; Fri, 16 Aug 2002 14:43:19 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7GLhIWY076200 for perforce@freebsd.org; Fri, 16 Aug 2002 14:43:18 -0700 (PDT) Date: Fri, 16 Aug 2002 14:43:18 -0700 (PDT) Message-Id: <200208162143.g7GLhIWY076200@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson Subject: PERFORCE change 16131 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://people.freebsd.org/~peter/p4db/chv.cgi?CH=16131 Change 16131 by rwatson@rwatson_tislabs on 2002/08/16 14:42:22 When printing the result of pointer arithmetic, use %#lx rather than %d. For some reason this didn't break axp build, but did break sparc64. Affected files ... .. //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#247 edit Differences ... ==== //depot/projects/trustedbsd/mac/sys/kern/kern_mac.c#247 (text+ko) ==== @@ -2201,7 +2201,7 @@ revokeperms = vme->max_protection & ~result; if (!revokeperms) continue; - printf("pid %d: revoking %s perms from %#lx:%d " + printf("pid %d: revoking %s perms from %#lx:%#lx " "(max %s/cur %s)\n", td->td_proc->p_pid, prot2str(revokeperms), vme->start, vme->end - vme->start, prot2str(vme->max_protection), prot2str(vme->protection)); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message