svn commit: r217941 - stable/8/sys/dev/mmc
Alexander Motin
mav at FreeBSD.org
Thu Jan 27 13:53:22 UTC 2011
Author: mav
Date: Thu Jan 27 13:53:21 2011
New Revision: 217941
URL: http://svn.freebsd.org/changeset/base/217941
Log:
MFC r217509:
Fix 32bit bit fields handling. This fixes card serial number fetching.
It was just a cosmetic issue, because that number is only reported in logs.
Modified:
stable/8/sys/dev/mmc/mmc.c
Directory Properties:
stable/8/sys/ (props changed)
stable/8/sys/amd64/include/xen/ (props changed)
stable/8/sys/cddl/contrib/opensolaris/ (props changed)
stable/8/sys/contrib/dev/acpica/ (props changed)
stable/8/sys/contrib/pf/ (props changed)
Modified: stable/8/sys/dev/mmc/mmc.c
==============================================================================
--- stable/8/sys/dev/mmc/mmc.c Thu Jan 27 13:52:23 2011 (r217940)
+++ stable/8/sys/dev/mmc/mmc.c Thu Jan 27 13:53:21 2011 (r217941)
@@ -749,7 +749,7 @@ mmc_get_bits(uint32_t *bits, int bit_len
uint32_t retval = bits[i] >> shift;
if (size + shift > 32)
retval |= bits[i - 1] << (32 - shift);
- return (retval & ((1 << size) - 1));
+ return (retval & ((1llu << size) - 1));
}
static void
More information about the svn-src-stable-8
mailing list