X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/939a69c898052f7a61688be4317c836808f1a2ec..a048d061b5eab321d8f77ed80fe5efc8afa720bf:/print-slow.c diff --git a/print-slow.c b/print-slow.c index 05d22692..9da02ffa 100644 --- a/print-slow.c +++ b/print-slow.c @@ -20,7 +20,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-slow.c,v 1.6 2006-06-23 01:53:28 hannes Exp $"; + "@(#) $Header: /tcpdump/master/tcpdump/print-slow.c,v 1.7 2006-08-19 06:59:17 guy Exp $"; #endif #ifdef HAVE_CONFIG_H @@ -509,8 +509,8 @@ void slow_oam_print(register const u_char *tptr, register u_int tlen) { if (tlv.slow_oam_info->info_length != sizeof(struct slow_oam_info_t)) { - printf("\n\t ERROR: illegal length - should be %u", - sizeof(struct slow_oam_info_t)); + printf("\n\t ERROR: illegal length - should be %lu", + (unsigned long) sizeof(struct slow_oam_info_t)); return; } @@ -585,8 +585,8 @@ void slow_oam_print(register const u_char *tptr, register u_int tlen) { if (tlv.slow_oam_link_event->event_length != sizeof(struct slow_oam_link_event_t)) { - printf("\n\t ERROR: illegal length - should be %u", - sizeof(struct slow_oam_link_event_t)); + printf("\n\t ERROR: illegal length - should be %lu", + (unsigned long) sizeof(struct slow_oam_link_event_t)); return; }