tech-kern archive

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

Re: kern/42030 - tracking of file descriptors by ktrace/kdump



On Tue, May 31, 2011 at 12:53:28AM +0000, Christos Zoulas wrote:
> This is just:
> 
>       if (ktr->ktr_dtype < __arraycount(dnames))
> >+            printf("%s %d\n", dnames[ktr->ktr_dtype], ktr->ktr_fd);
> >+    else
> >+            printf("%d\n", ktr->ktr_fd);

You can't do that - think what happens when another trace type is added.

        David

-- 
David Laight: david%l8s.co.uk@localhost


Home | Main Index | Thread Index | Old Index