netstat/kvm: Disable debug prints

This commit is contained in:
Joel Sherrill 2012-10-25 09:03:28 -05:00
parent e0b40b0aa2
commit af0a8ead1a
3 changed files with 3 additions and 5 deletions

View File

@ -1095,7 +1095,7 @@ kread(u_long addr, void *buf, size_t size)
{
char errbuf[_POSIX2_LINE_MAX];
#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
if (kvmd == NULL) {

View File

@ -231,10 +231,8 @@ routepr(u_long rtree)
if (rnh == NULL)
continue;
#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 */
if (rnh == 1)
continue;
#endif
/* Read the rnh data. */
if (kget(rnh, head) != 0)

View File

@ -54,7 +54,7 @@ again:
p->n_value = kvm->value;
if (kvm->value) {
++nvalid;
printf("kvm: %s = %p\n", p->n_name, (void*)kvm->value);
// printf("kvm: %s = %p\n", p->n_name, (void*)kvm->value);
}
break;
}