Skip to content

Commit

Permalink
Do not print C source after BPF compile fail (iovisor#1753)
Browse files Browse the repository at this point in the history
  • Loading branch information
oriolarcas authored and yonghong-song committed May 11, 2018
1 parent bad7a20 commit 55de66b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/python/bcc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def __init__(self, src_file=b"", hdr_file=b"", text=None, debug=0,
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)
Expand Down

0 comments on commit 55de66b

Please sign in to comment.