Commit 55de66b5 authored by Oriol Arcas's avatar Oriol Arcas Committed by yonghong-song

Do not print C source after BPF compile fail (#1753)

parent bad7a20c
......@@ -306,7 +306,7 @@ class BPF(object):
self.module = lib.bpf_module_create_c_from_string(text,
self.debug, cflags_array, len(cflags_array))
if not self.module:
raise Exception("Failed to compile BPF text:\n%s" % text)
raise Exception("Failed to compile BPF text")
else:
src_file = BPF._find_file(src_file)
hdr_file = BPF._find_file(hdr_file)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment