Skip to content

Commit

Permalink
tplist: don't fail if no verbosity is supplied
Browse files Browse the repository at this point in the history
Initialise the verbosity argument to 0, so that when no verbosity is
provided we don't fail with

$ tplist
kvmmmu:kvm_mmu_pagetable_walk
unorderable types: NoneType() > int()
  • Loading branch information
r4f4 committed Feb 9, 2017
1 parent 3e77af5 commit 838ad4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/tplist.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
help="List USDT probes in the specified process")
parser.add_argument("-l", "--lib", default="",
help="List USDT probes in the specified library or executable")
parser.add_argument("-v", dest="verbosity", action="count",
parser.add_argument("-v", dest="verbosity", action="count", default=0,
help="Increase verbosity level (print variables, arguments, etc.)")
parser.add_argument(dest="filter", nargs="?",
help="A filter that specifies which probes/tracepoints to print")
Expand Down

0 comments on commit 838ad4b

Please sign in to comment.