> >> usr/src/uts/common/io/mac/mac.c
 > >> -------------------------------
 > >>
 > >> * 1059,1064: I don't think that this does any good.  Only Solaris
 > >>    developers use DEBUG kernels, and this message is targetted at
 > >>    administrators who either use ndd or have written scripts that use
 > >>    ndd.  The message is also not useful in itself.  There's no way to
 > >>    correlate the message with a specific command that was used, so
 > >>    someone will see this in syslog and wonder where it came from.  I
 > >>    would suggest hacking something into the ndd command itself so that
 > >>    the thing issuing the command gets something printed to its stdio,
 > >>    and not a syslog message on a debug kernel.
 > > 
 > > This is a hot topic for debate. Fixing it in ndd is not a good solution
 > > because we don't want to print the message for drivers that have not
 > > been converted yet, and besides, there are applications like sunvts
 > > that issue the ndd ioctls directly, which would also benefit from
 > > the message. Dropping the message completely is also not totally
 > > satisfactory, as Garrett pointed out, because it's probably good
 > > to alert people about the change if possible. Leaving the message
 > > in non-debug kernels will result in syslog flooding, so that's not
 > > a good solution either. I chose the compromise of putting the 
 > > message in debug kernels only, but perhaps completely dropping
 > > the message is a better approach. 

Leaving aside SunVTS: couldn't ndd issue an ioctl to determine whether the
driver has been converted and then issue the warning as appropriate?

-- 
meem

Reply via email to