From 21f64f2acdf96a148c6cd69af0d2c294f6271a29 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Fri, 1 Mar 2024 15:02:07 +0100 Subject: [PATCH] virsh: Remove uncommon redundant descriptions of virsh commands MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 ") Change it to just state what the command does and leave the example for the help printer. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- 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 c134208fd4..ef750bec2f 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 ") + .data = N_("Get or set the current blkio parameters for a guest domain.") }, {.name = NULL} }; @@ -9238,10 +9235,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 ") + .data = N_("Get or set the current memory parameters for a guest domain.") }, {.name = NULL} }; @@ -9413,10 +9407,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 ") + .data = N_("Get or set the current perf events for a guest domain.") }, {.name = NULL} }; @@ -9545,10 +9536,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 ") + .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} };