summaryrefslogtreecommitdiff
path: root/sys/lib/libsa
diff options
context:
space:
mode:
authormlelstv <mlelstv@NetBSD.org>2019-03-31 16:14:48 +0000
committermlelstv <mlelstv@NetBSD.org>2019-03-31 16:14:48 +0000
commitb396fac6c163da7e7e6dcf06c13c7eee01dd16e7 (patch)
tree9379cbaff57a0789e0207bcf0bb3acfccf05d6bb /sys/lib/libsa
parent1f478884e7b5e6e0d43a5438e61069ad3beadfef (diff)
correct debug message, d->myport has network byte order.
Diffstat (limited to 'sys/lib/libsa')
-rw-r--r--sys/lib/libsa/udp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/lib/libsa/udp.c b/sys/lib/libsa/udp.c
index 59668395c0e..0f02081ec42 100644
--- a/sys/lib/libsa/udp.c
+++ b/sys/lib/libsa/udp.c
@@ -1,4 +1,4 @@
-/* $NetBSD: udp.c,v 1.11 2011/05/11 16:23:40 zoltan Exp $ */
+/* $NetBSD: udp.c,v 1.12 2019/03/31 16:14:48 mlelstv Exp $ */
/*
* Copyright (c) 1992 Regents of the University of California.
@@ -117,7 +117,7 @@ readudp(struct iodesc *d, void *pkt, size_t len, saseconds_t tleft)
#ifdef NET_DEBUG
if (debug)
printf("readudp: bad dport %d != %d\n",
- d->myport, ntohs(uh->uh_dport));
+ ntohs(d->myport), ntohs(uh->uh_dport));
#endif
return -1;
}