]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
privsep: guard spawn debug messages behind PRIVSEP_DEBUG
authorRoy Marples <roy@marples.name>
Fri, 29 Nov 2019 22:06:25 +0000 (22:06 +0000)
committerRoy Marples <roy@marples.name>
Fri, 29 Nov 2019 22:06:25 +0000 (22:06 +0000)
src/privsep-bpf.c
src/privsep-inet.c

index 98878b70df5d3ebd128ac5b4464f645f115617b8..5f2b19f9bd650c74c6b0fb6a2d06d7cef4e82c84 100644 (file)
@@ -217,8 +217,10 @@ ps_bpf_cmd(struct dhcpcd_ctx *ctx, struct ps_msghdr *psm, struct msghdr *msg)
        case 0:
                break;
        default:
+#ifdef PRIVSEP_DEBUG
                logdebugx("%s: spawned BPF %s on PID %d",
                    psp->psp_ifname, psp->psp_protostr, start);
+#endif
                break;
        }
        return start;
index 977a23b74bd96479d47ac71c41e547ea8d088729..e760e35c9d06742b90869f660602dca407e85406 100644 (file)
@@ -314,7 +314,9 @@ ps_inet_listenin(void *arg)
                return -1;
        }
 
+#ifdef PRIVSEP_DEBUG
        logdebugx("spawned listener %s on PID %d", buf, getpid());
+#endif
        return 0;
 }
 #endif