VirtualBox

Changeset 6883 in vbox


Ignore:
Timestamp:
Feb 11, 2008 7:52:19 AM (17 years ago)
Author:
vboxsync
Message:

Solaris vboxdrv: Avoid log flow like debug lines in release builds.

File:
1 edited

Legend:

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

    r6412 r6883  
    183183int _init(void)
    184184{
    185     cmn_err(CE_CONT, "VBoxDrvSolaris _init");
     185    dprintf(("VBoxDrvSolaris _init"));
    186186
    187187    int rc = ddi_soft_state_init(&g_pVBoxDrvSolarisState, sizeof(vbox_devstate_t), 8);
     
    202202int _fini(void)
    203203{
    204     cmn_err(CE_CONT, "VBoxDrvSolaris _fini");
     204    dprintf(("VBoxDrvSolaris _fini"));
    205205
    206206    int e = mod_remove(&g_VBoxDrvSolarisModLinkage);
     
    215215int _info(struct modinfo *pModInfo)
    216216{
    217     cmn_err(CE_CONT, "VBoxDrvSolaris _info");
     217    dprintf(("VBoxDrvSolaris _info"));
    218218    int e = mod_info(&g_VBoxDrvSolarisModLinkage, pModInfo);
    219     cmn_err(CE_CONT, "VBoxDrvSolaris _info returns %d", e);
     219    dprintf(("VBoxDrvSolaris _info returns %d", e));
    220220    return e;
    221221}
     
    232232static int VBoxDrvSolarisAttach(dev_info_t *pDip, ddi_attach_cmd_t enmCmd)
    233233{
    234     cmn_err(CE_CONT, "VBoxDrvSolarisAttach");
     234    dprintf(("VBoxDrvSolarisAttach"));
    235235
    236236    switch (enmCmd)
     
    335335
    336336
    337     cmn_err(CE_CONT, "VBoxDrvSolarisDetach");
     337    dprintf(("VBoxDrvSolarisDetach"));
    338338    switch (enmCmd)
    339339    {
     
    358358
    359359            memset(&g_DevExt, 0, sizeof(g_DevExt));
    360             cmn_err(CE_CONT, "VBoxDrvSolarisDetach: Clean Up Done.");
     360            dprintf(("VBoxDrvSolarisDetach: Clean Up Done."));
    361361            return DDI_SUCCESS;
    362362        }
     
    454454        g_apSessionHashTab[iHash] = pSession;
    455455        RTSpinlockReleaseNoInts(g_Spinlock, &Tmp);
    456         cmn_err(CE_NOTE,"VBoxDrvSolarisOpen success");
     456        OSDBGPRINT(("VBoxDrvSolarisOpen success"));
    457457    }
    458458
     
    560560static int VBoxDrvSolarisRead(dev_t Dev, struct uio *pUio, cred_t *pCred)
    561561{
    562     cmn_err(CE_CONT, "VBoxDrvSolarisRead");
     562    dprintf(("VBoxDrvSolarisRead"));
    563563    return 0;
    564564}
     
    567567static int VBoxDrvSolarisWrite(dev_t Dev, struct uio *pUio, cred_t *pCred)
    568568{
    569     cmn_err(CE_CONT, "VBoxDrvSolarisWrite");
     569    dprintf(("VBoxDrvSolarisWrite"));
    570570    return 0;
    571571}
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