diff options
| author | Warner Losh <imp@FreeBSD.org> | 2005-02-16 05:56:39 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2005-02-16 05:56:39 +0000 |
| commit | 8e325e2991583df97c4ea27438ec9f74c1bd9adf (patch) | |
| tree | 0d00fb665487d3d61629478d5ed871aaa7b93f84 /sys/dev/mii/mii.c | |
| parent | d8f2dda739fad2bc47249f365a8d5f9de292b965 (diff) | |
Notes
Diffstat (limited to 'sys/dev/mii/mii.c')
| -rw-r--r-- | sys/dev/mii/mii.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/mii/mii.c b/sys/dev/mii/mii.c index 02f56b41385e5..51e2ffc9d1cb5 100644 --- a/sys/dev/mii/mii.c +++ b/sys/dev/mii/mii.c @@ -202,7 +202,9 @@ miibus_child_pnpinfo_str(device_t bus, device_t child, char *buf, size_t buflen) { struct mii_attach_args *maa = device_get_ivars(child); - snprintf(buf, buflen, "id1=0x%x id2=0x%x", maa->mii_id1, maa->mii_id2); + snprintf(buf, buflen, "oui=0x%x model=0x%x rev=0x%x", + MII_OUI(maa->mii_id1, maa->mii_id2), + MII_MODEL(maa->mii_id2), MII_REV(maa->mii_id2)); return (0); } |
