aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/udp.c
diff options
context:
space:
mode:
authorMichael Brown <mcb30@etherboot.org>2006-07-19 18:45:18 +0000
committerMichael Brown <mcb30@etherboot.org>2006-07-19 18:45:18 +0000
commit82f32957948a65d9105e90696710b10e80ee80e5 (patch)
tree93112a432bc15cd72c8585b2678e294b05acc4fe /src/net/udp.c
parentab633f6a73a6b349f4162c4645347993884fc183 (diff)
downloadipxe-82f32957948a65d9105e90696710b10e80ee80e5.tar.gz
Use more standardised format specifiers in debug messages (e.g. %p for
a pointer).
Diffstat (limited to 'src/net/udp.c')
-rw-r--r--src/net/udp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/udp.c b/src/net/udp.c
index 94200b2b..91a9e9fa 100644
--- a/src/net/udp.c
+++ b/src/net/udp.c
@@ -48,12 +48,12 @@ static inline uint16_t * dest_port ( struct sockaddr *sock ) {
void udp_dump ( struct udp_header *udphdr ) {
/* Print UDP header for debugging */
- DBG ( "UDP header at %#x + %d\n", udphdr, sizeof ( *udphdr ) );
+ DBG ( "UDP header at %p + %#zx\n", udphdr, sizeof ( *udphdr ) );
DBG ( "\tSource Port = %d\n", ntohs ( udphdr->source_port ) );
DBG ( "\tDestination Port = %d\n", ntohs ( udphdr->dest_port ) );
DBG ( "\tLength = %d\n", ntohs ( udphdr->len ) );
DBG ( "\tChecksum = %x\n", ntohs ( udphdr->chksum ) );
- DBG ( "\tChecksum located at %#x\n", &udphdr->chksum );
+ DBG ( "\tChecksum located at %p\n", &udphdr->chksum );
}
/**