Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/lib/libsa correct debug message, d->myport has network b...



details:   https://anonhg.NetBSD.org/src/rev/798fb70e73f3
branches:  trunk
changeset: 997914:798fb70e73f3
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sun Mar 31 16:14:48 2019 +0000

description:
correct debug message, d->myport has network byte order.

diffstat:

 sys/lib/libsa/udp.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 01acba6b2b92 -r 798fb70e73f3 sys/lib/libsa/udp.c
--- a/sys/lib/libsa/udp.c       Sun Mar 31 16:09:14 2019 +0000
+++ b/sys/lib/libsa/udp.c       Sun Mar 31 16:14:48 2019 +0000
@@ -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 @@
 #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;
        }



Home | Main Index | Thread Index | Old Index