Skip to content

Commit

Permalink
more printf varargs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Cliff Frey committed Feb 15, 2013
1 parent 70d83e2 commit e2ecbb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion elements/ip/rfc2507d.cc
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ RFC2507d::simple_action(Packet *p)
memcpy(&tcph, q->data() + sizeof(click_ip), sizeof(tcph));
click_chatter("seq %d len %d",
(int)ntohl(tcph.th_seq),
q->length() - sizeof(tcph) - sizeof(iph));
(int)(q->length() - sizeof(tcph) - sizeof(iph)));

{
char *p = new char[q->length()];
Expand Down
2 changes: 1 addition & 1 deletion elements/local/printairo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ PrintAiro::simple_action(Packet *p)
unsigned int len = frame->an_rx_payload_len + ieee80211_header_len;
if (len > sizeof(buf)) {
click_chatter("%s: Frame too big to copy into buffer (%d > %d)\n",
name().c_str(), len, sizeof(buf));
name().c_str(), len, (int)sizeof(buf));
return 0;
}

Expand Down

0 comments on commit e2ecbb6

Please sign in to comment.