When the current machine does not support configuring/deconfiguring
memory, simply report that it cannot be done, instead of seemingly
telling the user to skip the configuring/deconfiguring.
Also, there is no need to mention `chmem` in the message: mentioning
just the recommended option (-e or -d) is enough. Also, consistently
terminate all four messages with a period.
This improves upon commit
ab2e709600 ("chmem: improve messages").
CC: Sumanth Korikkar <sumanthk@linux.ibm.com>
Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
if (!desc->have_memconfig) {
if (configure)
fprintf(stdout,
- _("Skip configuration. Use chmem -e instead.\n"));
+ _("Cannot configure. Use -e instead.\n"));
else
fprintf(stdout,
- _("Skip deconfiguration. Use chmem -d instead\n"));
+ _("Cannot deconfigure. Use -d instead.\n"));
return -1;
}
size = desc->size;
if (!desc->have_memconfig) {
if (configure)
fprintf(stdout,
- _("Skip configuration. Use chmem -e instead.\n"));
+ _("Cannot configure. Use -e instead.\n"));
else
fprintf(stdout,
- _("Skip deconfiguration. Use chmem -d instead\n"));
+ _("Cannot deconfigure. Use -d instead.\n"));
return -1;
}
todo = desc->end - desc->start + 1;