The example in the libtracefs-instance-affinity man page had a bug where it was taking argv[0] as one of the parameters for the CPUs to set. The first parameter is the executable name, which isn't what we want. Signed-off-by: Steven Rostedt <rostedt@xxxxxxxxxxx> --- Documentation/libtracefs-instances-affinity.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/libtracefs-instances-affinity.txt b/Documentation/libtracefs-instances-affinity.txt index 22994f877e30..0f3093d62035 100644 --- a/Documentation/libtracefs-instances-affinity.txt +++ b/Documentation/libtracefs-instances-affinity.txt @@ -146,8 +146,8 @@ int main (int argc, char **argv) } trace_seq_init(&seq); - for (i = 0; i < argc; i++) { - if (i) + for (i = 1; i < argc; i++) { + if (i > 1) trace_seq_putc(&seq, ','); trace_seq_puts(&seq, argv[i]); } -- 2.33.0