Skip to content

Commit

Permalink
Use PRIu64 rather than %llu - %llu might be wrong, if u_int64_t is just
Browse files Browse the repository at this point in the history
"unsigned long int", or if this is Windows with Microsoft's C compiler.
  • Loading branch information
yuguy committed Jul 1, 2008
1 parent 1705e6d commit dd9a713
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions print-rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

#ifndef lint
static const char rcsid[] _U_ =
"@(#) $Header: /tcpdump/master/tcpdump/print-rx.c,v 1.40 2008-05-12 18:16:42 guy Exp $";
"@(#) $Header: /tcpdump/master/tcpdump/print-rx.c,v 1.41 2008-07-01 07:40:39 guy Exp $";
#endif

#ifdef HAVE_CONFIG_H
Expand Down Expand Up @@ -707,7 +707,7 @@ rx_cache_find(const struct rx_header *rxh, const struct ip *ip, int sport,
TCHECK2(bp[0], sizeof(u_int64_t)); \
i = EXTRACT_64BITS(bp); \
bp += sizeof(u_int64_t); \
printf(" %llu", i); \
printf(" " PRIu64, i); \
}

#define DATEOUT() { time_t t; struct tm *tm; char str[256]; \
Expand Down

0 comments on commit dd9a713

Please sign in to comment.