From: Jérémie Galarneau Date: Wed, 4 Mar 2020 23:27:28 +0000 (-0500) Subject: Fix: lttng: incorrect domain list printed when no domain is provided X-Git-Tag: v2.11.3~5 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=bf19009767db1b69e7c9badfab564aa30ea28ad6;hp=bf19009767db1b69e7c9badfab564aa30ea28ad6;p=lttng-tools.git Fix: lttng: incorrect domain list printed when no domain is provided The following commands make use of a common utility function to validate the count of domains specified and print an error when it is invalid: - lttng-enable-event, - lttng-disable-event, - lttng-track, - lttng-untrack, - lttng-add-context, - lttng-enable-channel, - lttng-disable-channel. Those commands do not allow the same domains to be used. In fact, they all expect --kernel or --userspace only, except for the lttng-enable-event, lttng-disable-event, and lttng-add-context commands which allow the --log4j, --jul, and --python domain options to be used. Currently, the error message when no domain is specified is incorrect for all of those commands. The error reads as follows: `Error: Please specify a domain (-k/-u/-j).` For most commands, the -j option cannot be used. For those that allow agent domains, the message is missing the -l and -p domains. This ensures that the expected domains are printed for each of those commands. Moreover, the message is clarified by using the long form option names. Signed-off-by: Jérémie Galarneau Change-Id: I45aee075dbf6c62c4120bdeb06697b88b2d8716c ---