On Thu, May 11, 2017 at 12:06:01PM -0400, David Miller wrote:
> 
> +static int do_test_single(struct bpf_align_test *test)
> +{
> +     struct bpf_insn *prog = test->insns;
> +     int prog_type = test->prog_type;
> +     int prog_len, i;
> +     int fd_prog;
> +     int ret;
> +
> +     prog_len = probe_filter_length(prog);
> +     fd_prog = bpf_verify_program(prog_type ? : BPF_PROG_TYPE_SOCKET_FILTER,
> +                                  prog, prog_len, 1, "GPL", 0,
> +                                  bpf_vlog, sizeof(bpf_vlog));
> +     if (fd_prog < 0) {
> +             printf("Failed to load program.\n");
> +             printf("%s", bpf_vlog);
> +             ret = 1;
> +     } else {
> +             ret = 0;
> +             for (i = 0; i < MAX_MATCHES; i++) {
> +                     const char *t, *m = test->matches[i];
> +
> +                     if (!m)
> +                             break;
> +                     t = strstr(bpf_vlog, m);
> +                     if (!t) {
> +                             printf("Failed to find match: %s\n", m);
> +                             ret = 1;
> +                             printf("%s", bpf_vlog);
> +                             break;
> +                     }
> +             }
> +             /* printf("%s", bpf_vlog); */
Why is this commented out?

-- 
Mit freundlichen Grüßen

Alexander Alemayhu

Reply via email to