]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
Fix wrong comparison in cmp_print_eopt()
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 3 Oct 2011 05:22:56 +0000 (05:22 +0000)
committerStephen Hemminger <shemminger@vyatta.com>
Fri, 7 Oct 2011 18:16:15 +0000 (11:16 -0700)
Detected by cppcheck.

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
tc/em_cmp.c

index 6addce072bd4feab27a9bcf39c6391aa0ba01015..3e6d00e5d65eb77096cfac04c538b115c06589bb 100644 (file)
@@ -155,7 +155,7 @@ static int cmp_print_eopt(FILE *fd, struct tcf_ematch_hdr *hdr, void *data,
                fprintf(fd, "u8 ");
        else if (cmp->align == TCF_EM_ALIGN_U16)
                fprintf(fd, "u16 ");
-       else if (cmp->align == TCF_EM_ALIGN_U16)
+       else if (cmp->align == TCF_EM_ALIGN_U32)
                fprintf(fd, "u32 ");
 
        fprintf(fd, "at %d layer %d ", cmp->off, cmp->layer);