From: jsg Date: Sun, 6 Oct 2024 23:39:24 +0000 (+0000) Subject: remove unused DEBUG_PLEDGE lines; ok deraadt@ X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a704a667956955560432e63e1e235a2fd6664315;p=openbsd remove unused DEBUG_PLEDGE lines; ok deraadt@ --- diff --git a/sys/kern/kern_pledge.c b/sys/kern/kern_pledge.c index 51d29d56c02..89281cf0a29 100644 --- a/sys/kern/kern_pledge.c +++ b/sys/kern/kern_pledge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_pledge.c,v 1.320 2024/09/24 02:22:42 deraadt Exp $ */ +/* $OpenBSD: kern_pledge.c,v 1.321 2024/10/06 23:39:24 jsg Exp $ */ /* * Copyright (c) 2015 Nicholas Marriott @@ -85,16 +85,6 @@ int parsepledges(struct proc *p, const char *kname, int canonpath(const char *input, char *buf, size_t bufsize); void unveil_destroy(struct process *ps); -/* #define DEBUG_PLEDGE */ -#ifdef DEBUG_PLEDGE -int debug_pledge = 1; -#define DPRINTF(x...) do { if (debug_pledge) printf(x); } while (0) -#define DNPRINTF(n,x...) do { if (debug_pledge >= (n)) printf(x); } while (0) -#else -#define DPRINTF(x...) -#define DNPRINTF(n,x...) -#endif - /* * Ordered in blocks starting with least risky and most required. */