svn commit: r287853 - in head/sys/dev: ral usb/wlan
Kevin Lo
kevlo at FreeBSD.org
Wed Sep 16 07:18:56 UTC 2015
Author: kevlo
Date: Wed Sep 16 07:18:54 2015
New Revision: 287853
URL: https://svnweb.freebsd.org/changeset/base/287853
Log:
Fix a debug message which didn't quite get it right about eeprom version.
Modified:
head/sys/dev/ral/rt2860.c
head/sys/dev/usb/wlan/if_run.c
Modified: head/sys/dev/ral/rt2860.c
==============================================================================
--- head/sys/dev/ral/rt2860.c Wed Sep 16 07:16:21 2015 (r287852)
+++ head/sys/dev/ral/rt2860.c Wed Sep 16 07:18:54 2015 (r287853)
@@ -3351,7 +3351,7 @@ rt2860_read_eeprom(struct rt2860_softc *
/* 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);
Modified: head/sys/dev/usb/wlan/if_run.c
==============================================================================
--- head/sys/dev/usb/wlan/if_run.c Wed Sep 16 07:16:21 2015 (r287852)
+++ head/sys/dev/usb/wlan/if_run.c Wed Sep 16 07:18:54 2015 (r287853)
@@ -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);
More information about the svn-src-all
mailing list