VirtualBox

Changeset 2563 in vbox


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

Added release logging to the Linux TAP code (removed superfluous debug log statements)

File:
1 edited

Legend:

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

    r2561 r2563  
    57315731    {
    57325732        int iErr = errno;
    5733         Log(("Failed to start the TAP interface setup script %s, error text: %s\n",
    5734               szCommand, strerror(iErr)));
    57355733        LogRel(("Failed to start the TAP interface setup script %s, error text: %s\n",
    57365734              szCommand, strerror(iErr)));
     
    57575755        {
    57585756            pclose(pfScriptHandle);
    5759             Log(("The TAP interface setup script did not return the name of a TAP device.\n"));
    57605757            LogRel(("The TAP interface setup script did not return the name of a TAP device.\n"));
    57615758            LogFlowThisFunc(("rc=E_FAIL\n"));
     
    57695766    if (!WIFEXITED(rc))
    57705767    {
    5771         Log(("The TAP interface setup script terminated abnormally.\n"));
    57725768        LogRel(("The TAP interface setup script terminated abnormally.\n"));
    57735769        LogFlowThisFunc(("rc=E_FAIL\n"));
     
    57765772    if (WEXITSTATUS(rc) != 0)
    57775773    {
    5778         Log(("The TAP interface setup script returned a non-zero exit code.\n"));
    57795774        LogRel(("The TAP interface setup script returned a non-zero exit code.\n"));
    57805775        LogFlowThisFunc(("rc=E_FAIL\n"));
     
    58775872                if (rcVBox != 0)
    58785873                {
    5879                     Log(("Failed to open the host network interface %ls\n", tapDeviceName.raw()));
    58805874                    LogRel(("Failed to open the host network interface %ls\n", tapDeviceName.raw()));
    58815875                    rc = setError(E_FAIL, tr ("Failed to open the host network interface %ls"),
     
    58905884                    if (tapDeviceName.isEmpty())
    58915885                    {
    5892                         Log(("No setup application was supplied for the TAP interface.\n"));
    58935886                        LogRel(("No setup application was supplied for the TAP interface.\n"));
    58945887                        rc = setError(E_FAIL, tr ("No setup application was supplied for the host networking interface"));
     
    59145907                    if (rcVBox != 0)
    59155908                    {
    5916                         Log(("Failed to open the host network interface %ls returned by the setup script", tapDeviceName.raw()));
    59175909                        LogRel(("Failed to open the host network interface %ls returned by the setup script", tapDeviceName.raw()));
    59185910                        rc = setError(E_FAIL, tr ("Failed to open the host network interface %ls returned by the setup script"), tapDeviceName.raw());
     
    59385930                    else
    59395931                    {
    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)));
     5932                        int iErr = errno;
     5933
     5934                        LogRel(("Configuration error: Failed to configure /dev/net/tun non blocking. Error: %s\n", strerror(iErr)));
    59425935                        rcVBox = VERR_HOSTIF_BLOCKING;
    59435936                        rc = setError(E_FAIL, tr ("could not set up the host networking device for non blocking access: %s"),
     
    59495942        else
    59505943        {
    5951             Log(("Configuration error: Failed to open /dev/net/tun rc=%Vrc\n", rcVBox));
    59525944            LogRel(("Configuration error: Failed to open /dev/net/tun rc=%Vrc\n", rcVBox));
    59535945            switch (rcVBox)
     
    59735965        if (VBOX_FAILURE(rcVBox) && SUCCEEDED(rc))
    59745966        {
    5975             Log(("General failure attaching to host interface\n"));
    59765967            LogRel(("General failure attaching to host interface\n"));
    59775968            rc = setError(E_FAIL, tr ("General failure attaching to host interface"));
     
    60506041            if (rcCommand == -1)
    60516042            {
    6052                 Log(("Failed to execute the clean up script for the TAP interface"));
    60536043                LogRel(("Failed to execute the clean up script for the TAP interface"));
    60546044                rc = setError(E_FAIL, tr ("Failed to execute the clean up script for the TAP interface"));
     
    60566046            if (!WIFEXITED(rc))
    60576047            {
    6058                 Log(("The TAP interface clean up script terminated abnormally.\n"));
    60596048                LogRel(("The TAP interface clean up script terminated abnormally.\n"));
    60606049                rc = setError(E_FAIL, tr ("The TAP interface clean up script terminated abnormally"));
     
    60626051            if (WEXITSTATUS(rc) != 0)
    60636052            {
    6064                 Log(("The TAP interface clean up script returned a non-zero exit code.\n"));
    60656053                LogRel(("The TAP interface clean up script returned a non-zero exit code.\n"));
    60666054                rc = setError(E_FAIL, tr ("The TAP interface clean up script returned a non-zero exit code"));
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