filetop: Fix TypeError by not mixing bytes and str.
authorRafael Fonseca <rdossant@redhat.com>
Mon, 6 Feb 2017 16:07:28 +0000 (17:07 +0100)
committerRafael Fonseca <rdossant@redhat.com>
Tue, 14 Feb 2017 15:15:53 +0000 (16:15 +0100)
commit29392650a9b038b7c739166a06da7b3db6f9e547
tree66d74941fbb2ff3f3b34af6ae8bae57b24ab3e5a
parent9da5a972052b63fd503a52b349a96ed7e7f06b46
filetop: Fix TypeError by not mixing bytes and str.

When executing the filetop command tool, the following message was
generated:

Traceback (most recent call last):
  File "/usr/share/bcc/tools/filetop", line 190, in <module>
    name = name[:-3] + "..."
TypeError: can't concat bytes to str

Also, by decoding the bytes we print the strings without a leading "b'"
making the output more readable.
tools/filetop.py