Use backtrace() instead of db_print_backtrace()
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 27 Dec 2008 07:04:17 +0000 (15:04 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 27 Dec 2008 07:05:33 +0000 (15:05 +0800)
sys/net/route.c
sys/netinet/ip_output.c

index d79d116..f03c68c 100644 (file)
@@ -131,9 +131,6 @@ SYSCTL_INT(_net_route, OID_AUTO, route_debug, CTLFLAG_RW,
 int route_assert_owner_access = 0;
 SYSCTL_INT(_net_route, OID_AUTO, assert_owner_access, CTLFLAG_RW,
            &route_assert_owner_access, 0, "");
-SYSCTL_INT(_net_route, OID_AUTO, remote_free_panic, CTLFLAG_RW,
-           &route_assert_owner_access, 0, ""); /* alias */
-extern void    db_print_backtrace(void);
 
 /*
  * Initialize the route table(s) for protocol domains and
@@ -383,7 +380,7 @@ rtfree_remote(struct rtentry *rt, int allow_panic)
        } else {
                kprintf("rt remote free rt_cpuid %d, mycpuid %d\n",
                        rt->rt_cpuid, mycpuid);
-               db_print_backtrace();
+               backtrace();
        }
 
        netmsg_init(&nmsg, &curthread->td_msgport, 0, rtfree_remote_dispatch);
@@ -1394,7 +1391,7 @@ rt_addrinfo_print(int cmd, struct rt_addrinfo *rti)
 
 #ifdef ROUTE_DEBUG
        if (cmd == RTM_DELETE && route_debug > 1)
-               db_print_backtrace();
+               backtrace();
 #endif
 
        switch(cmd) {
index 80c7f28..8d68d53 100644 (file)
@@ -117,7 +117,6 @@ static int  ip_setmoptions
 int    ip_optcopy(struct ip *, struct ip *);
 
 extern int route_assert_owner_access;
-extern void db_print_backtrace(void);
 
 extern struct protosw inetsw[];
 
@@ -227,7 +226,7 @@ ip_output(struct mbuf *m0, struct mbuf *opt, struct route *ro,
                                kprintf("ip_output: "
                                        "rt rt_cpuid %d accessed on cpu %d\n",
                                        ro->ro_rt->rt_cpuid, mycpuid);
-                               db_print_backtrace();
+                               backtrace();
                        }
                }