VirtualBox

Changeset 44203 in vbox


Ignore:
Timestamp:
Dec 25, 2012 4:24:32 PM (12 years ago)
Author:
vboxsync
Message:

HostDrivers/solaris: spaces, wrap to 130 columns.

File:
1 edited

Legend:

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

    r41702 r44203  
    632632    {
    633633        PVLANHEADER pVlanHdr = (PVLANHEADER)(pMsg->b_rptr + sizeof(RTNETETHERHDR) - sizeof(pEthHdr->EtherType));
    634         LogRel((DEVICE_NAME ":VLAN Pcp=%u Cfi=%u Id=%u\n", VLAN_PRI(RT_BE2H_U16(pVlanHdr->Data)), VLAN_CFI(RT_BE2H_U16(pVlanHdr->Data)), VLAN_ID(RT_BE2H_U16(pVlanHdr->Data))));
     634        LogRel((DEVICE_NAME ":VLAN Pcp=%u Cfi=%u Id=%u\n", VLAN_PRI(RT_BE2H_U16(pVlanHdr->Data)),
     635                VLAN_CFI(RT_BE2H_U16(pVlanHdr->Data)), VLAN_ID(RT_BE2H_U16(pVlanHdr->Data))));
    635636        LogRel((DEVICE_NAME "%.*Rhxd\n", sizeof(VLANHEADER), pVlanHdr));
    636637    }
     
    644645        LogRel((DEVICE_NAME ":IPv6 D=%.6Rhxs S=%.6Rhxs\n", pb, pb + 6));
    645646    }
    646     else if (pEthHdr->EtherType == RT_H2BE_U16(RTNET_ETHERTYPE_IPX_1)
     647    else if (   pEthHdr->EtherType == RT_H2BE_U16(RTNET_ETHERTYPE_IPX_1)
    647648             || pEthHdr->EtherType == RT_H2BE_U16(RTNET_ETHERTYPE_IPX_2)
    648649             || pEthHdr->EtherType == RT_H2BE_U16(RTNET_ETHERTYPE_IPX_3))
     
    680681LOCAL void vboxNetFltSolarisRecv(void *pvData, mac_resource_handle_t hResource, mblk_t *pMsg, boolean_t fLoopback)
    681682{
    682     Log((DEVICE_NAME ":vboxNetFltSolarisRecv pvData=%p pMsg=%p fLoopback=%d cbData=%d\n", pvData, pMsg, fLoopback, pMsg ? MBLKL(pMsg) : 0));
     683    Log((DEVICE_NAME ":vboxNetFltSolarisRecv pvData=%p pMsg=%p fLoopback=%d cbData=%d\n", pvData, pMsg, fLoopback,
     684         pMsg ? MBLKL(pMsg) : 0));
    683685
    684686    PVBOXNETFLTINS pThis = (PVBOXNETFLTINS)pvData;
     
    755757            {
    756758                ASMAtomicUoWriteBool(&pThis->fDisconnectedFromHost, fDisconnectedFromHost);
    757                 LogRel((DEVICE_NAME ":vboxNetFltSolarisLinkNotify link state change: new state=%s\n", fDisconnectedFromHost ? "DOWN" : "UP"));
     759                LogRel((DEVICE_NAME ":vboxNetFltSolarisLinkNotify link state change: new state=%s\n",
     760                fDisconnectedFromHost ? "DOWN" : "UP"));
    758761            }
    759762            break;
     
    946949                }
    947950                else
    948                     LogRel((DEVICE_NAME ":vboxNetFltSolarisInitVNICTemplate failed to copy link name of underlying interface. rc=%d\n", rc));
     951                {
     952                    LogRel((DEVICE_NAME ":vboxNetFltSolarisInitVNICTemplate failed to copy link name of underlying interface"
     953                            ". rc=%d\n", rc));
     954                }
    949955            }
    950956            else
    951957            {
    952                 LogRel((DEVICE_NAME ":vboxNetFltSolarisInitVNICTemplate failed to get lower handle for VNIC template '%s'.\n", pThis->szName));
     958                LogRel((DEVICE_NAME ":vboxNetFltSolarisInitVNICTemplate failed to get lower handle for VNIC template '%s'.\n",
     959                        pThis->szName));
    953960                rc = VERR_INTNET_FLT_IF_FAILED;
    954961            }
     
    11601167            if (RT_SUCCESS(rc))
    11611168            {
    1162                 Log((DEVICE_NAME ":vboxNetFltSolarisCreateVNIC successfully created VNIC '%s' over '%s' with random mac %.6Rhxs\n",
     1169                Log((DEVICE_NAME ":vboxNetFltSolarisCreateVNIC created VNIC '%s' over '%s' with random mac %.6Rhxs\n",
    11631170                         pVNIC->szName, pszLinkName, &GuestMac));
    11641171                *ppVNIC = pVNIC;
     
    14561463    PVBOXNETFLTVNIC pVNIC = pvIfData;
    14571464    AssertMsgReturnVoid(VALID_PTR(pVNIC) && pVNIC->u32Magic == VBOXNETFLTVNIC_MAGIC,
    1458                     ("Invalid pVNIC=%p magic=%#x (expected %#x)\n", pvIfData, VALID_PTR(pVNIC) ? pVNIC->u32Magic : 0, VBOXNETFLTVNIC_MAGIC));
     1465                    ("Invalid pVNIC=%p magic=%#x (expected %#x)\n", pvIfData,
     1466                     VALID_PTR(pVNIC) ? pVNIC->u32Magic : 0, VBOXNETFLTVNIC_MAGIC));
    14591467    AssertMsgReturnVoid(pVNIC->hLinkId != DATALINK_INVALID_LINKID,
    14601468                    ("Invalid hLinkId pVNIC=%p magic=%#x\n", pVNIC, pVNIC->u32Magic));
     
    15061514                 * Set the RX receive function.
    15071515                 * This shouldn't be necessary as vboxNetFltPortOsSetActive() will be invoked after this, but in the future,
    1508                  * if the guest NIC changes MAC address this may not be followed by a vboxNetFltPortOsSetActive() call, so set it here anyway.
     1516                 * if the guest NIC changes MAC address this may not be followed by a vboxNetFltPortOsSetActive() call,
     1517                 * so set it here anyway.
    15091518                 */
    15101519                mac_rx_set(pVNIC->hClient, vboxNetFltSolarisRecv, pThis);
     
    15181527        }
    15191528        else
    1520             LogRel((DEVICE_NAME ":vboxNetFltPortOsNotifyMacAddress failed to add primary unicast address. rc=%d Diag=%d\n", rc, MacDiag));
     1529        {
     1530            LogRel((DEVICE_NAME ":vboxNetFltPortOsNotifyMacAddress failed to add primary unicast address. rc=%d Diag=%d\n", rc,
     1531                    MacDiag));
     1532        }
    15211533    }
    15221534    else
     
    16081620                }
    16091621                else
    1610                     LogRel((DEVICE_NAME ":vboxNetFltPortOsConnectInterface failed to get link id for '%s'. rc=%d\n", pThis->szName, rc));
     1622                {
     1623                    LogRel((DEVICE_NAME ":vboxNetFltPortOsConnectInterface failed to get link id for '%s'. rc=%d\n",
     1624                            pThis->szName, rc));
     1625                }
    16111626            }
    16121627            else
     
    16351650    PVBOXNETFLTVNIC pVNIC = pvIfData;
    16361651    AssertMsgReturn(VALID_PTR(pVNIC) && pVNIC->u32Magic == VBOXNETFLTVNIC_MAGIC,
    1637                     ("Invalid pvIfData=%p magic=%#x (expected %#x)\n", pvIfData, pVNIC ? pVNIC->u32Magic : 0, VBOXNETFLTVNIC_MAGIC),
    1638                     VERR_INVALID_POINTER);
     1652                    ("Invalid pvIfData=%p magic=%#x (expected %#x)\n", pvIfData,
     1653                     pVNIC ? pVNIC->u32Magic : 0, VBOXNETFLTVNIC_MAGIC), VERR_INVALID_POINTER);
    16391654
    16401655    /*
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