diff options
author | kevlo <kevlo@FreeBSD.org> | 2015-09-16 07:18:54 +0000 |
---|---|---|
committer | kevlo <kevlo@FreeBSD.org> | 2015-09-16 07:18:54 +0000 |
commit | af485bf686fb554cd5596b8a02749434a7ef13fd (patch) | |
tree | 84f7444b4f521305f3d1da2a46aa89957b4599c4 /sys | |
parent | 68a13f6d1f437c932bd9658844215d4eb7fd1e4d (diff) | |
download | FreeBSD-src-af485bf686fb554cd5596b8a02749434a7ef13fd.zip FreeBSD-src-af485bf686fb554cd5596b8a02749434a7ef13fd.tar.gz |
Fix a debug message which didn't quite get it right about eeprom version.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ral/rt2860.c | 2 | ||||
-rw-r--r-- | sys/dev/usb/wlan/if_run.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ral/rt2860.c b/sys/dev/ral/rt2860.c index b3c737d..48c3ed8 100644 --- a/sys/dev/ral/rt2860.c +++ b/sys/dev/ral/rt2860.c @@ -3351,7 +3351,7 @@ rt2860_read_eeprom(struct rt2860_softc *sc, uint8_t macaddr[IEEE80211_ADDR_LEN]) /* read EEPROM version */ val = rt2860_srom_read(sc, RT2860_EEPROM_VERSION); - DPRINTF(("EEPROM rev=%d, FAE=%d\n", val & 0xff, val >> 8)); + DPRINTF(("EEPROM rev=%d, FAE=%d\n", val >> 8, val & 0xff)); /* read MAC address */ val = rt2860_srom_read(sc, RT2860_EEPROM_MAC01); diff --git a/sys/dev/usb/wlan/if_run.c b/sys/dev/usb/wlan/if_run.c index b787c03..87088c1 100644 --- a/sys/dev/usb/wlan/if_run.c +++ b/sys/dev/usb/wlan/if_run.c @@ -1730,7 +1730,7 @@ run_read_eeprom(struct run_softc *sc) /* read ROM version */ run_srom_read(sc, RT2860_EEPROM_VERSION, &val); - DPRINTF("EEPROM rev=%d, FAE=%d\n", val & 0xff, val >> 8); + DPRINTF("EEPROM rev=%d, FAE=%d\n", val >> 8, val & 0xff); /* read MAC address */ run_srom_read(sc, RT2860_EEPROM_MAC01, &val); |