NetBpfLoad: suppress debug log if NETBPFLOAD_VERBOSE_LOG is not defined

Reduces ~900 lines of log spam by suppressing non-warning messages.
Verbose logging can be re-enabled for debugging by defining the
NETBPFLOAD_VERBOSE_LOG macro.

Bug: 428792764
Flag: EXEMPT logging only change
Test: TH
Change-Id: Ieac3e7ee843b889fb404a89cfe2319ec34ab365c
This commit is contained in:
Motomu Utsumi 2025-07-23 13:26:19 +09:00
commit a84eb0bc1e

View file

@ -1835,6 +1835,9 @@ static bool isWear() {
static int libbpfPrint(enum libbpf_print_level lvl, const char *const formatStr,
va_list argList) {
#ifndef NETBPFLOAD_VERBOSE_LOG
if (lvl != LIBBPF_WARN) return 0;
#endif
int32_t prio;
switch (lvl) {
case LIBBPF_WARN: