> Steven Stallion wrote:
>>> ddi_binding_name() gives the alias that was used to bind the driver.
>>>
>>
>> Ahh, perfect!
>>
>>
>>> However, I tend to prefer exporting the driver name, such as
>>> "ddi_driver_name()", in the output.
>>>
>>
>> Agreed.
>>
>> All cmn_err calls have the driver name and instance number prefixed, so
>> the entire output looks like:
>>
>> ne0 probed "pci1027,00ab"
>>
>
> Be advised that this is true for syslog, but *not* true for the message
> buffer -- $<msgbuf lacks the prefix.

Hrmm, I'm not relying on the syslog prefix, I'm prefixing each of my
cmn_err calls in an aux. function (ne_cmn_err).

Actual syslog output is:

Aug 14 12:30:37 devel ne: [ID 597375 kern.notice] NOTICE: ne0 probed
"pci10ec,8029"

Would the ne0 still be removed for msgbuf?

Steve

_______________________________________________
driver-discuss mailing list
driver-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/driver-discuss

Reply via email to