Merge "NetBpfLoad: suppress debug log if NETBPFLOAD_VERBOSE_LOG is not defined" into main

This commit is contained in:
Treehugger Robot 2025-07-24 22:32:38 -07:00 • committed by Android (Google) Code Review
commit e0d10b7cb1

View file

@ -1833,6 +1833,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: