VirtualBox

Changeset 2561 in vbox


Ignore:
Timestamp:
May 9, 2007 3:39:16 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
21021
Message:

Added release logging to the Linux TAP code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl.cpp

    r2540 r2561  
    57335733        Log(("Failed to start the TAP interface setup script %s, error text: %s\n",
    57345734              szCommand, strerror(iErr)));
     5735        LogRel(("Failed to start the TAP interface setup script %s, error text: %s\n",
     5736              szCommand, strerror(iErr)));
    57355737        LogFlowThisFunc(("rc=E_FAIL\n"));
    57365738        return setError(E_FAIL, tr ("Failed to run the host networking set up command %s: %s"),
     
    57565758            pclose(pfScriptHandle);
    57575759            Log(("The TAP interface setup script did not return the name of a TAP device.\n"));
     5760            LogRel(("The TAP interface setup script did not return the name of a TAP device.\n"));
    57585761            LogFlowThisFunc(("rc=E_FAIL\n"));
    57595762            return setError(E_FAIL, tr ("The host networking set up command did not supply an interface name"));
     
    57675770    {
    57685771        Log(("The TAP interface setup script terminated abnormally.\n"));
     5772        LogRel(("The TAP interface setup script terminated abnormally.\n"));
    57695773        LogFlowThisFunc(("rc=E_FAIL\n"));
    57705774        return setError(E_FAIL, tr ("The host networking set up command did not run correctly"));
     
    57735777    {
    57745778        Log(("The TAP interface setup script returned a non-zero exit code.\n"));
     5779        LogRel(("The TAP interface setup script returned a non-zero exit code.\n"));
    57755780        LogFlowThisFunc(("rc=E_FAIL\n"));
    57765781        return setError(E_FAIL, tr ("The host networking set up command returned a non-zero exit code"));
     
    58735878                {
    58745879                    Log(("Failed to open the host network interface %ls\n", tapDeviceName.raw()));
     5880                    LogRel(("Failed to open the host network interface %ls\n", tapDeviceName.raw()));
    58755881                    rc = setError(E_FAIL, tr ("Failed to open the host network interface %ls"),
    58765882                                          tapDeviceName.raw());
     
    58855891                    {
    58865892                        Log(("No setup application was supplied for the TAP interface.\n"));
     5893                        LogRel(("No setup application was supplied for the TAP interface.\n"));
    58875894                        rc = setError(E_FAIL, tr ("No setup application was supplied for the host networking interface"));
    58885895                    }
     
    59085915                    {
    59095916                        Log(("Failed to open the host network interface %ls returned by the setup script", tapDeviceName.raw()));
     5917                        LogRel(("Failed to open the host network interface %ls returned by the setup script", tapDeviceName.raw()));
    59105918                        rc = setError(E_FAIL, tr ("Failed to open the host network interface %ls returned by the setup script"), tapDeviceName.raw());
    59115919                    }
     
    59305938                    else
    59315939                    {
    5932                         AssertMsgFailed(("Configuration error: Failed to configure /dev/net/tun non blocking. errno=%d\n", errno));
     5940                        Log(("Configuration error: Failed to configure /dev/net/tun non blocking. Error: %s\n", strerror(errno)));
     5941                        LogRel(("Configuration error: Failed to configure /dev/net/tun non blocking. Error: %s\n", strerror(errno)));
    59335942                        rcVBox = VERR_HOSTIF_BLOCKING;
    59345943                        rc = setError(E_FAIL, tr ("could not set up the host networking device for non blocking access: %s"),
     
    59405949        else
    59415950        {
    5942             AssertMsgFailed(("Configuration error: Failed to open /dev/net/tun rc=%Vrc\n", rcVBox));
     5951            Log(("Configuration error: Failed to open /dev/net/tun rc=%Vrc\n", rcVBox));
     5952            LogRel(("Configuration error: Failed to open /dev/net/tun rc=%Vrc\n", rcVBox));
    59435953            switch (rcVBox)
    59445954            {
     
    59635973        if (VBOX_FAILURE(rcVBox) && SUCCEEDED(rc))
    59645974        {
     5975            Log(("General failure attaching to host interface\n"));
     5976            LogRel(("General failure attaching to host interface\n"));
    59655977            rc = setError(E_FAIL, tr ("General failure attaching to host interface"));
    59665978        }
     
    60396051            {
    60406052                Log(("Failed to execute the clean up script for the TAP interface"));
     6053                LogRel(("Failed to execute the clean up script for the TAP interface"));
    60416054                rc = setError(E_FAIL, tr ("Failed to execute the clean up script for the TAP interface"));
    60426055            }
     
    60446057            {
    60456058                Log(("The TAP interface clean up script terminated abnormally.\n"));
     6059                LogRel(("The TAP interface clean up script terminated abnormally.\n"));
    60466060                rc = setError(E_FAIL, tr ("The TAP interface clean up script terminated abnormally"));
    60476061            }
     
    60496063            {
    60506064                Log(("The TAP interface clean up script returned a non-zero exit code.\n"));
     6065                LogRel(("The TAP interface clean up script returned a non-zero exit code.\n"));
    60516066                rc = setError(E_FAIL, tr ("The TAP interface clean up script returned a non-zero exit code"));
    60526067            }
Note: See TracChangeset for help on using the changeset viewer.

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