trace: print a warning if user tries to enable an unknown trace event
authorBlue Swirl <blauwirbel@gmail.com>
Wed, 13 Oct 2010 19:14:29 +0000 (19:14 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Wed, 13 Oct 2010 19:14:29 +0000 (19:14 +0000)
commit3519d22c0fa44df2e8ee3aaf4c18648cd4e0cf9d
tree6b68bc6aed69b8725f4454ec83c577056f206869
parent2679215a68552620ab54ef0859aa262657cfd5bc
trace: print a warning if user tries to enable an unknown trace event

There was no warning if a bad trace event name was given to
'trace-event' command, thus the user could think that the command
was successful even if this was not the case.

Print a warning if the user tries to enable a trace event which is not
known.

Acked-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
monitor.c
simpletrace.c
simpletrace.h