Fix mingw32 and OpenBSD warnings
commite6e055c9d79c665de200fc46c746d403d3d943ad
authorBlue Swirl <blauwirbel@gmail.com>
Sat, 4 Dec 2010 17:37:35 +0000 (4 17:37 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 4 Dec 2010 18:36:22 +0000 (4 18:36 +0000)
treeb79601e7bc09391e16de98bb1a55202e7eb0147a
parentbcd478781ab1d11911ab5505c34b5577de904eeb
Fix mingw32 and OpenBSD warnings

ffsl() is not universally available, so there are these warnings
on both mingw32 and OpenBSD:
/src/qemu/hw/pcie_aer.c: In function 'pcie_aer_update_log':
/src/qemu/hw/pcie_aer.c:399: warning: implicit declaration of function 'ffsl'

Since status field in PCIEAERErr is uint32_t, we can just use ffs() instead.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/pcie_aer.c