On May 31,  7:57am, [email protected] (David Laight) wrote:
-- Subject: Re: kern/42030 - tracking of file descriptors by ktrace/kdump

| >     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.

If you don't recompile the dumper, it prints just %d, if you do it prints
the new trace name? Am I missing something? This is why I asked to print
the value too.

christos

Reply via email to