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:
parent
461b408129
commit
bfc0b6187c
1 changed files with 3 additions and 2 deletions
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue