Merge "NetBpfLoad: suppress debug log if NETBPFLOAD_VERBOSE_LOG is not defined" into main
This commit is contained in:
commit
e0d10b7cb1
1 changed files with 3 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue