NetBpfLoad: better log message on program load failure

We're reduced logging enough that it is no longer clear
which program failed to load.

Test: TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I8919a055f82d0c0e6e6818799463c606e853f70b
This commit is contained in:
Maciej Żenczykowski 2024-08-28 17:45:25 -07:00
commit bfc0b6187c

View file

@ -1018,10 +1018,11 @@ static int loadCodeSections(const char* elfPath, vector<codeSection>& cs, const
ALOGW("BPF_PROG_LOAD - END log_buf contents.");
if (cs[i].prog_def->optional) {
ALOGW("failed program is marked optional - continuing...");
ALOGW("failed program %s is marked optional - continuing...",
cs[i].name.c_str());
continue;
}
ALOGE("non-optional program failed to load.");
ALOGE("non-optional program %s failed to load.", cs[i].name.c_str());
}
}