mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-23 23:47:16 +08:00
netstat/kvm: Disable debug prints
This commit is contained in:
parent
e0b40b0aa2
commit
af0a8ead1a
@ -1095,7 +1095,7 @@ kread(u_long addr, void *buf, size_t size)
|
|||||||
{
|
{
|
||||||
char errbuf[_POSIX2_LINE_MAX];
|
char errbuf[_POSIX2_LINE_MAX];
|
||||||
#ifdef __rtems__
|
#ifdef __rtems__
|
||||||
printf( "kread( %p to %p for %d)\n", (void *)addr, buf, size );
|
/* printf( "kread( %p to %p for %d)\n", (void *)addr, buf, size ); */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (kvmd == NULL) {
|
if (kvmd == NULL) {
|
||||||
|
@ -231,10 +231,8 @@ routepr(u_long rtree)
|
|||||||
if (rnh == NULL)
|
if (rnh == NULL)
|
||||||
continue;
|
continue;
|
||||||
#ifdef __rtems__
|
#ifdef __rtems__
|
||||||
printf( "rnh %p %p\n", (void *)rnhp, (void *)rnh );
|
/* printf( "rnh %p %p\n", (void *)rnhp, (void *)rnh ); */
|
||||||
/* We get a 1 here on some fields. Why? XXX */
|
/* We get a 1 here on some fields. Why? XXX */
|
||||||
if (rnh == 1)
|
|
||||||
continue;
|
|
||||||
#endif
|
#endif
|
||||||
/* Read the rnh data. */
|
/* Read the rnh data. */
|
||||||
if (kget(rnh, head) != 0)
|
if (kget(rnh, head) != 0)
|
||||||
|
@ -54,7 +54,7 @@ again:
|
|||||||
p->n_value = kvm->value;
|
p->n_value = kvm->value;
|
||||||
if (kvm->value) {
|
if (kvm->value) {
|
||||||
++nvalid;
|
++nvalid;
|
||||||
printf("kvm: %s = %p\n", p->n_name, (void*)kvm->value);
|
// printf("kvm: %s = %p\n", p->n_name, (void*)kvm->value);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user