VirtualBox

Changeset 223 in vbox


Ignore:
Timestamp:
Jan 22, 2007 10:38:28 AM (18 years ago)
Author:
vboxsync
Message:

More logging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuestLib/SysHlp.cpp

    r1 r223  
    2424#include "SysHlp.h"
    2525
     26#define LOG_GROUP LOG_GROUP_HGCM
     27#include <VBox/log.h>
    2628#include <iprt/assert.h>
    2729
     
    5557    if (NT_SUCCESS (rc))
    5658    {
     59        Log(("vbglDriverOpen VBoxGuest successful pDeviceObject=%x\n", pDeviceObject));
    5760        pDriver->pDeviceObject = pDeviceObject;
    5861        pDriver->pFileObject = pFileObject;
    5962        return VINF_SUCCESS;
    6063    }
    61 /** @todo return RTErrConvertFromNtStatus(rc)! */
     64    /** @todo return RTErrConvertFromNtStatus(rc)! */
     65    Log(("vbglDriverOpen VBoxGuest failed with ntstatus=%x\n", rc));
    6266    return rc;
    6367#else
     
    9397    if (irp == NULL)
    9498    {
     99        Log(("vbglDriverIOCtl: IoBuildDeviceIoControlRequest failed\n"));
    95100        return VERR_NO_MEMORY;
    96101    }
    97102
    98103    NTSTATUS rc = IoCallDriver (pDriver->pDeviceObject, irp);
     104
     105    if (!NT_SUCCESS(rc))
     106        Log(("vbglDriverIOCtl: IoCallDriver failed with ntstatus=%x\n", rc));
    99107
    100108    return NT_SUCCESS(rc)? VINF_SUCCESS: VERR_VBGL_IOCTL_FAILED;
     
    107115{
    108116#ifdef __WIN__
     117    Log(("vbglDriverClose pDeviceObject=%x\n", pDriver->pDeviceObject));
    109118    ObDereferenceObject (pDriver->pFileObject);
    110119#else
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