Skip to content

Commit

Permalink
Remove extra arguments to printf
Browse files Browse the repository at this point in the history
Extra ' ' character in printf arguments leads to wrong display
in the nh output.

Change-Id: I6ec7453f10985013e515f322dbde99c6e608e302
Closes-BUG: 1466607
  • Loading branch information
anandhk-juniper committed Oct 12, 2015
1 parent 507fda3 commit 3566564
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions utils/nh.c
Expand Up @@ -210,10 +210,10 @@ vr_nexthop_req_process(void *s_req)
printf("Oif:%d\n", req->nhr_encap_oif_id);
} else if (req->nhr_type == NH_ENCAP) {
nh_print_newline_header();
printf("EncapFmly:%04x Oif:%d Len:%d", ' ',
printf("EncapFmly:%04x Oif:%d Len:%d",
req->nhr_encap_family, req->nhr_encap_oif_id, req->nhr_encap_size);
nh_print_newline_header();
printf("Encap Data: ", ' ');
printf("Encap Data: ");
for (i = 0; i< req->nhr_encap_size; i++) {
printf("%02x ", (unsigned char)req->nhr_encap[i]);
}
Expand All @@ -237,7 +237,7 @@ vr_nexthop_req_process(void *s_req)
}
} else if (req->nhr_type == NH_VRF_TRANSLATE) {
nh_print_newline_header();
printf("Vrf:%d\n", ' ', req->nhr_vrf);
printf("Vrf:%d\n", req->nhr_vrf);
} else if (req->nhr_type == NH_COMPOSITE) {
nh_print_newline_header();
printf("Sub NH(label):");
Expand Down

0 comments on commit 3566564

Please sign in to comment.