import subprocess
if (len(sys.argv) < 3):
- print "Usage: %s [connman binary] [connman log]" % (sys.argv[0])
+ print "Usage: %s [binary] [log]" % (sys.argv[0])
sys.exit(1)
binary = sys.argv[1]
frame_count = len(frames);
count = 0
-print "-------- ConnMan backtrace --------"
+print "-------- backtrace --------"
while count < frame_count:
print "[%d]: %s() [%s]" % (count/2, frames[count], frames[count + 1])
count = count + 2
-print "-----------------------------------"
+print "---------------------------"