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:
parent
e50e55dd32
commit
a84eb0bc1e
1 changed files with 3 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue