[LTP] [PATCH v3 3/3] ltp/numa: use string to describe operation

Li Wang liwang@redhat.com
Fri May 19 10:32:01 CEST 2017


On Fri, May 19, 2017 at 4:25 PM, Li Wang <liwang@redhat.com> wrote:
> Signed-off-by: Li Wang <liwang@redhat.com>
> diff --git a/testcases/kernel/numa/support_numa.c b/testcases/kernel/numa/support_numa.c
> index 97f3008..fef8277 100644
> --- a/testcases/kernel/numa/support_numa.c
> +++ b/testcases/kernel/numa/support_numa.c
> @@ -50,10 +50,10 @@
>  static void help(void)
>  {
>         printf("Input:  Describe input arguments to this program\n");
> -       printf("        argv[1] == 1 then allocate 1MB of memory\n");
> -       printf("        argv[1] == 2 then allocate 1MB of share memory\n");
> -       printf("        argv[1] == 3 then allocate 1HUGE PAGE SIZE of memory\n");
> -       printf("        argv[1] == 4 then pause the program to catch sigint\n");
> +       printf("        argv[1] == "alloc_1MB" then allocate 1MB of memory\n");
> +       printf("        argv[1] == "alloc_1MB_shared" then allocate 1MB of share memory\n");
> +       printf("        argv[1] == "alloc_1huge_page" then allocate 1HUGE PAGE SIZE of memory\n");
> +       printf("        argv[1] == "pause" then pause the program to catch sigint\n");
>         printf("Exit:   On failure - Exits with non-zero value\n");
>         printf("        On success - exits with 0 exit value\n");
>
> @@ -97,8 +97,7 @@ int main(int argc, char *argv[])
>                 exit(1);
>         }

Oops, this one has little syntax error.

please apply the latest:

  [PATCH v3 3/3] ltp/numa: use string to describe operation





-- 
Regards,
Li Wang
Email: liwang@redhat.com


More information about the ltp mailing list