[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] Fix a typo in the macro PCI_BDF2()
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1216710116 -3600 # Node ID 770ca32e192523c00bbb0ae76342c1ac577b3465 # Parent aa4d69e16f0e840cf238650c7985c106c5ef66e9 Fix a typo in the macro PCI_BDF2() Signed-off-by: Dexuan Cui <dexuan.cui@xxxxxxxxx> --- xen/include/xen/pci.h | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff -r aa4d69e16f0e -r 770ca32e1925 xen/include/xen/pci.h --- a/xen/include/xen/pci.h Tue Jul 22 08:00:43 2008 +0100 +++ b/xen/include/xen/pci.h Tue Jul 22 08:01:56 2008 +0100 @@ -24,10 +24,10 @@ #define PCI_BUS(bdf) (((bdf) >> 8) & 0xff) #define PCI_SLOT(bdf) (((bdf) >> 3) & 0x1f) #define PCI_FUNC(bdf) ((bdf) & 0x07) -#define PCI_DEVFN(d,f) (((d & 0x1f) << 3) | (f & 0x07)) +#define PCI_DEVFN(d,f) ((((d) & 0x1f) << 3) | ((f) & 0x07)) #define PCI_DEVFN2(bdf) ((bdf) & 0xff) -#define PCI_BDF(b,d,f) (((b * 0xff) << 8) | PCI_DEVFN(d,f)) -#define PCI_BDF2(b,df) (((b & 0xff) << 8) | (df & 0xff)) +#define PCI_BDF(b,d,f) ((((b) & 0xff) << 8) | PCI_DEVFN(d,f)) +#define PCI_BDF2(b,df) ((((b) & 0xff) << 8) | ((df) & 0xff)) struct pci_dev { struct list_head alldevs_list; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |