Some description of virsh commands referenced itself in a multi-line
example of usage, which is pointless as virsh help already shows how to
use the command:
.data = N_("Get or set the current memory parameters for a guest"
" domain.\n"
" To get the memory parameters use following command: \n\n"
" virsh # memtune <domain>")
Change it to just state what the command does and leave the example for
the help printer.
Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
tools/virsh-domain.c | 20 ++++----------------
tools/virsh-host.c | 4 +---
2 files changed, 5 insertions(+), 19 deletions(-)
diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
index d3e28f38f4..a90aefeb32 100644
--- a/tools/virsh-domain.c
+++ b/tools/virsh-domain.c
@@ -1528,10 +1528,7 @@ static const vshCmdInfo info_blkiotune[] = {
.data = N_("Get or set blkio parameters")
},
{.name = "desc",
- .data = N_("Get or set the current blkio parameters for a guest"
- " domain.\n"
- " To get the blkio parameters use following command: \n\n"
- " virsh # blkiotune <domain>")
+ .data = N_("Get or set the current blkio parameters for a guest domain.")
},
{.name = NULL}
};
@@ -9257,10 +9254,7 @@ static const vshCmdInfo info_memtune[] = {
.data = N_("Get or set memory parameters")
},
{.name = "desc",
- .data = N_("Get or set the current memory parameters for a guest"
- " domain.\n"
- " To get the memory parameters use following command: \n\n"
- " virsh # memtune <domain>")
+ .data = N_("Get or set the current memory parameters for a guest
domain.")
},
{.name = NULL}
};
@@ -9432,10 +9426,7 @@ static const vshCmdInfo info_perf[] = {
.data = N_("Get or set perf event")
},
{.name = "desc",
- .data = N_("Get or set the current perf events for a guest"
- " domain.\n"
- " To get the perf events list use following command:
\n\n"
- " virsh # perf <domain>")
+ .data = N_("Get or set the current perf events for a guest domain.")
},
{.name = NULL}
};
@@ -9564,10 +9555,7 @@ static const vshCmdInfo info_numatune[] = {
.data = N_("Get or set numa parameters")
},
{.name = "desc",
- .data = N_("Get or set the current numa parameters for a guest"
- " domain.\n"
- " To get the numa parameters use following command: \n\n"
- " virsh # numatune <domain>")
+ .data = N_("Get or set the current numa parameters for a guest domain.")
},
{.name = NULL}
};
diff --git a/tools/virsh-host.c b/tools/virsh-host.c
index 90ff46c5c4..87443220bd 100644
--- a/tools/virsh-host.c
+++ b/tools/virsh-host.c
@@ -1505,9 +1505,7 @@ cmdVersion(vshControl *ctl, const vshCmd *cmd G_GNUC_UNUSED)
static const vshCmdInfo info_node_memory_tune[] = {
{"help", N_("Get or set node memory parameters")},
- {"desc", N_("Get or set node memory parameters\n"
- " To get the memory parameters, use following command:
\n\n"
- " virsh # node-memory-tune")},
+ {"desc", N_("Get or set node memory parameters")},
{NULL, NULL}
};
--
2.44.0