monitor/hmp: print trace as option in help for log command
authorDongli Zhang <dongli.zhang@oracle.com>
Wed, 31 Aug 2022 21:39:43 +0000 (14:39 -0700)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 15 Sep 2022 11:19:08 +0000 (12:19 +0100)
commit3183bb3f441ba5b9da570f7f5f9abdc3313ba311
tree58883f85d679353d915693a96017e9862648cb52
parent00d60cfcbda54b86ad9e09b20c7b71250dd6b19b
monitor/hmp: print trace as option in help for log command

The below is printed when printing help information in qemu-system-x86_64
command line, and when CONFIG_TRACE_LOG is enabled:

----------------------------
$ qemu-system-x86_64 -d help
... ...
trace:PATTERN   enable trace events

Use "-d trace:help" to get a list of trace events.
----------------------------

However, the options of "trace:PATTERN" are only printed by
"qemu-system-x86_64 -d help", but missing in hmp "help log" command.

Fixes: c84ea00dc2 ("log: add "-d trace:PATTERN"")
Cc: Joe Jin <joe.jin@oracle.com>
Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com>
Message-Id: <20220831213943.8155-1-dongli.zhang@oracle.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
monitor/hmp.c