Skip to content

Commit

Permalink
Typo writting BPF (iovisor#659)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianlzt authored and chantra committed Sep 16, 2016
1 parent c382ec5 commit 748de9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/python/bcc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ def attach_xdp(dev, fn):
if res < 0:
err_no = ct.get_errno()
if err_no == errno.EBADMSG:
raise Exception("Internal error while attaching BFP to device,"+
raise Exception("Internal error while attaching BPF to device,"+
" try increasing the debug level!")
else:
errstr = os.strerror(err_no)
Expand All @@ -492,7 +492,7 @@ def attach_xdp(dev, fn):
@staticmethod
def remove_xdp(dev):
'''
This function removes any BPF function from a device on the
This function removes any BPF function from a device on the
device driver level (XDP)
'''
res = lib.bpf_attach_xdp(dev.encode("ascii"), -1)
Expand Down

0 comments on commit 748de9f

Please sign in to comment.