[PATCH] taskset --help command hide -c command

renchunhui (A) renchunhui2 at huawei.com
Wed May 18 07:58:11 UTC 2022


Shouldn't show -c in taskset --help if -c command is not enabled

Signed-off-by: Chunhui Ren<renchunhui2 at huawei.com<mailto:renchunhui2 at huawei.com>>

---
busybox/util-linux/ taskset.c | 2+-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/util-linux/taskset.c b/util-linux/taskset.c
index d834a58..ff083d5 100644
--- a/util-linux/taskset.c
+++ b/util-linux/taskset.c
@@ -39,7 +39,7 @@
//usage:       "Set or get CPU affinity\n"
//usage:     "\n       -p      Operate on PID"
//usage:     "\n       -a      Operate on all threads"
-//usage:     "\n        -c      Affinity is a list, not mask"
+//usage:     IF_FEATURE_TASKSET_CPULIST("\n     -c     Affinity is a list, not mask")
//usage:
//usage:#define taskset_example_usage
//usage:       "$ taskset 0x7 ./dgemm_test&\n"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20220518/a073bcd3/attachment.html>


More information about the busybox mailing list