Date: Wed, 16 Sep 2015 07:18:55 +0000 (UTC) From: Kevin Lo <kevlo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r287853 - in head/sys/dev: ral usb/wlan Message-ID: <201509160718.t8G7Ithv047928@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509160718.t8G7Ithv047928>