VirtualBox

Ignore:
Timestamp:
Dec 14, 2010 11:37:21 AM (14 years ago)
Author:
vboxsync
Message:

VBoxNetFlt/linux: Linux 2.6.37rc compile fix for DEBUG builds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/linux/VBoxNetFlt-linux.c

    r33752 r35066  
    10061006        {
    10071007            dev_hold(pDev);
    1008             Log(("vboxNetFltLinuxRetainNetDev: Device %p(%s) retained. ref=%d\n", pDev, pDev->name, atomic_read(&pDev->refcnt)));
     1008            Log(("vboxNetFltLinuxRetainNetDev: Device %p(%s) retained. ref=%d\n",
     1009                 pDev, pDev->name,
     1010#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)
     1011                 netdev_refcnt_read(pDev)
     1012#else
     1013                 atomic_read(&pDev->refcnt)
     1014#endif
     1015                 ));
    10091016        }
    10101017    }
     
    10351042    {
    10361043        dev_put(pDev);
    1037         Log(("vboxNetFltLinuxReleaseNetDev: Device %p(%s) released. ref=%d\n", pDev, pDev->name, atomic_read(&pDev->refcnt)));
     1044        Log(("vboxNetFltLinuxReleaseNetDev: Device %p(%s) released. ref=%d\n",
     1045             pDev, pDev->name,
     1046#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)
     1047             netdev_refcnt_read(pDev)
     1048#else
     1049             atomic_read(&pDev->refcnt)
     1050#endif
     1051             ));
    10381052    }
    10391053    Log(("vboxNetFltLinuxReleaseNetDev - done\n"));
     
    19781992    RTSpinlockReleaseNoInts(pThis->hSpinlock, &Tmp);
    19791993
    1980     Log(("vboxNetFltLinuxAttachToInterface: Device %p(%s) retained. ref=%d\n", pDev, pDev->name, atomic_read(&pDev->refcnt)));
    1981     Log(("vboxNetFltLinuxAttachToInterface: Got pDev=%p pThis=%p pThis->u.s.pDev=%p\n", pDev, pThis, ASMAtomicUoReadPtrT(&pThis->u.s.pDev, struct net_device *)));
     1994    Log(("vboxNetFltLinuxAttachToInterface: Device %p(%s) retained. ref=%d\n",
     1995          pDev, pDev->name,
     1996#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)
     1997          netdev_refcnt_read(pDev)
     1998#else
     1999          atomic_read(&pDev->refcnt)
     2000#endif
     2001          ));
     2002    Log(("vboxNetFltLinuxAttachToInterface: Got pDev=%p pThis=%p pThis->u.s.pDev=%p\n",
     2003          pDev, pThis, ASMAtomicUoReadPtrT(&pThis->u.s.pDev, struct net_device *)));
    19822004
    19832005    /* Get the mac address while we still have a valid net_device reference. */
     
    20482070        RTSpinlockReleaseNoInts(pThis->hSpinlock, &Tmp);
    20492071        dev_put(pDev);
    2050         Log(("vboxNetFltLinuxAttachToInterface: Device %p(%s) released. ref=%d\n", pDev, pDev->name, atomic_read(&pDev->refcnt)));
     2072        Log(("vboxNetFltLinuxAttachToInterface: Device %p(%s) released. ref=%d\n",
     2073             pDev, pDev->name,
     2074#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)
     2075             netdev_refcnt_read(pDev)
     2076#else
     2077             atomic_read(&pDev->refcnt)
     2078#endif
     2079             ));
    20512080    }
    20522081
     
    20802109#endif
    20812110    Log(("vboxNetFltLinuxUnregisterDevice: this=%p: Packet handler removed, xmit queue purged.\n", pThis));
    2082     Log(("vboxNetFltLinuxUnregisterDevice: Device %p(%s) released. ref=%d\n", pDev, pDev->name, atomic_read(&pDev->refcnt)));
     2111    Log(("vboxNetFltLinuxUnregisterDevice: Device %p(%s) released. ref=%d\n",
     2112         pDev, pDev->name,
     2113#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)
     2114         netdev_refcnt_read(pDev)
     2115#else
     2116         atomic_read(&pDev->refcnt)
     2117#endif
     2118         ));
    20832119    dev_put(pDev);
    20842120
     
    23832419#endif
    23842420        Log(("vboxNetFltOsDeleteInstance: this=%p: Packet handler removed, xmit queue purged.\n", pThis));
    2385         Log(("vboxNetFltOsDeleteInstance: Device %p(%s) released. ref=%d\n", pDev, pDev->name, atomic_read(&pDev->refcnt)));
     2421        Log(("vboxNetFltOsDeleteInstance: Device %p(%s) released. ref=%d\n",
     2422             pDev, pDev->name,
     2423#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 37)
     2424             netdev_refcnt_read(pDev)
     2425#else
     2426             atomic_read(&pDev->refcnt)
     2427#endif
     2428             ));
    23862429        dev_put(pDev);
    23872430    }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette