• Linuxraptor's avatar
    Fix folding option · fabd9a19
    Linuxraptor authored
    Using the "folding" option produces an error.
    
    /usr/share/bcc/tools/offwaketime -f 3 > out.stacks
    
    Traceback (most recent call last):
      File "/usr/share/bcc/tools/offwaketime", line 305, in <module>
        print("%s %d" % (str.join(";", line), v.value))
    TypeError: sequence item 0: expected str instance, bytes found
    
    It seems that k.target and k.waker are always type = bytes.  This edit resolves this error.
    Thank you for your time.
    fabd9a19
offwaketime.py 10.9 KB