aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorTejun Heo <[email protected]>2010-12-22 10:06:36 +0100
committerJesse Barnes <[email protected]>2010-12-23 12:53:52 -0800
commit99a0fadf561e1f553c08f0a29f8b2578f55dd5f0 (patch)
tree97bf80533001e4aedf6e6e96e21c3cac4bd37641 /tools/perf/util/trace-event-scripting.c
parent9b444b36fee16d2aaae9cc91ce594ecb15d922a9 (diff)
PCI: pci-stub: ignore zero-length id parameters
pci-stub uses strsep() to separate list of ids and generates a warning message when it fails to parse an id. However, not specifying the parameter results in ids set to an empty string. strsep() happily returns the empty string as the first token and thus triggers the warning message spuriously. Make the tokner ignore zero length ids. Reported-by: Chris Wright <[email protected]> Reported-by: Prasad Joshi <[email protected]> Cc: [email protected] Signed-off-by: Jesse Barnes <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions