Source-Changes-HG archive

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

[src/trunk]: src/sys/net fix debugging printf.



details:   https://anonhg.NetBSD.org/src/rev/6b7afbc2dfc4
branches:  trunk
changeset: 804851:6b7afbc2dfc4
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Dec 02 21:28:31 2014 +0000

description:
fix debugging printf.

diffstat:

 sys/net/rtsock.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 5e7f2dfd7069 -r 6b7afbc2dfc4 sys/net/rtsock.c
--- a/sys/net/rtsock.c  Tue Dec 02 20:25:47 2014 +0000
+++ b/sys/net/rtsock.c  Tue Dec 02 21:28:31 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rtsock.c,v 1.165 2014/12/02 20:25:48 christos Exp $    */
+/*     $NetBSD: rtsock.c,v 1.166 2014/12/02 21:28:31 christos Exp $    */
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rtsock.c,v 1.165 2014/12/02 20:25:48 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rtsock.c,v 1.166 2014/12/02 21:28:31 christos Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -133,7 +133,7 @@
 
 #ifdef RTSOCK_DEBUG
 #define RT_IN_PRINT(b, a) (in_print((b), sizeof(b), \
-    &((const struct sockaddr_in *)info.rti_info(a))->sin_addr), (b))
+    &((const struct sockaddr_in *)info.rti_info[(a)])->sin_addr), (b))
 #endif /* RTSOCK_DEBUG */
 
 struct route_info COMPATNAME(route_info) = {
@@ -584,7 +584,7 @@
                                    AF_INET) {
                                        char ibuf[INET_ADDRSTRLEN];
                                        char abuf[INET_ADDRSTRLEN];
-                                       printf("%s: copying out RTAX_IFA %s ",
+                                       printf("%s: copying out RTAX_IFA %s "
                                            "for info.rti_info[RTAX_DST] %s "
                                            "ifa_getifa %p ifa_seqno %p\n",
                                            __func__,



Home | Main Index | Thread Index | Old Index