VirtualBox

Changeset 37983 in vbox for trunk/src


Ignore:
Timestamp:
Jul 15, 2011 2:42:57 PM (13 years ago)
Author:
vboxsync
Message:

Spaces.

File:
1 edited

Legend:

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

    r37982 r37983  
    413413vboxNetFltSolarisCtfGetMemberOffset(ctf_file_t *pCtfFile, const char *pszStruct, const char *pszMember, int *pOffset)
    414414{
    415         AssertReturn(pCtfFile, VERR_INVALID_PARAMETER);
    416         AssertReturn(pszStruct, VERR_INVALID_PARAMETER);
    417         AssertReturn(pszMember, VERR_INVALID_PARAMETER);
    418         AssertReturn(pOffset, VERR_INVALID_PARAMETER);
    419 
    420         ctf_id_t TypeId = ctf_lookup_by_name(pCtfFile, pszStruct);
    421         if (TypeId != CTF_ERR)
    422         {
    423                 ctf_membinfo_t MemberInfo;
    424                 bzero(&MemberInfo, sizeof(MemberInfo));
    425                 if (ctf_member_info(pCtfFile, TypeId, pszMember, &MemberInfo) != CTF_ERR)
    426                 {
    427                         *pOffset = (MemberInfo.ctm_offset >> 3);
    428                         LogRel((DEVICE_NAME ":%s::%s at %d\n", pszStruct, pszMember, *pOffset));
    429                         return VINF_SUCCESS;
    430                 }
    431                 else
    432                         LogRel((DEVICE_NAME ":ctf_member_info failed for struct %s member %s\n", pszStruct, pszMember));
    433         }
    434         else
    435                 LogRel((DEVICE_NAME ":ctf_lookup_by_name failed for struct %s\n", pszStruct));
    436 
    437         return VERR_NOT_FOUND;
     415    AssertReturn(pCtfFile, VERR_INVALID_PARAMETER);
     416    AssertReturn(pszStruct, VERR_INVALID_PARAMETER);
     417    AssertReturn(pszMember, VERR_INVALID_PARAMETER);
     418    AssertReturn(pOffset, VERR_INVALID_PARAMETER);
     419
     420    ctf_id_t TypeId = ctf_lookup_by_name(pCtfFile, pszStruct);
     421    if (TypeId != CTF_ERR)
     422    {
     423        ctf_membinfo_t MemberInfo;
     424        bzero(&MemberInfo, sizeof(MemberInfo));
     425        if (ctf_member_info(pCtfFile, TypeId, pszMember, &MemberInfo) != CTF_ERR)
     426        {
     427            *pOffset = (MemberInfo.ctm_offset >> 3);
     428            LogRel((DEVICE_NAME ":%s::%s at %d\n", pszStruct, pszMember, *pOffset));
     429            return VINF_SUCCESS;
     430        }
     431        else
     432            LogRel((DEVICE_NAME ":ctf_member_info failed for struct %s member %s\n", pszStruct, pszMember));
     433    }
     434    else
     435        LogRel((DEVICE_NAME ":ctf_lookup_by_name failed for struct %s\n", pszStruct));
     436
     437    return VERR_NOT_FOUND;
    438438}
    439439
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