VirtualBox

Changeset 53764 in vbox


Ignore:
Timestamp:
Jan 9, 2015 4:03:52 PM (10 years ago)
Author:
vboxsync
Message:

Additions/VBoxService: added a few missing \n and limit the occurrence of an error message

Location:
trunk/src/VBox/Additions/common/VBoxService
Files:
3 edited

Legend:

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

    r53421 r53764  
    10731073            || dwErr == ERROR_ACCESS_DENIED)
    10741074        {
    1075             VBoxServiceError("%s is already running! Terminating.", g_pszProgName);
     1075            VBoxServiceError("%s is already running! Terminating.\n", g_pszProgName);
    10761076            return RTEXITCODE_FAILURE;
    10771077        }
    10781078
    1079         VBoxServiceError("CreateMutex failed with last error %u! Terminating", GetLastError());
     1079        VBoxServiceError("CreateMutex failed with last error %u! Terminating.\n", GetLastError());
    10801080        return RTEXITCODE_FAILURE;
    10811081    }
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo-win.cpp

    r53333 r53764  
    261261
    262262            default:
    263                 VBoxServiceError("Token class not implemented: %ld", tkClass);
     263                VBoxServiceError("Token class not implemented: %ld\n", tkClass);
    264264                rc = VERR_NOT_IMPLEMENTED;
    265265                break;
  • trunk/src/VBox/Additions/common/VBoxService/VBoxServiceVMInfo.cpp

    r51564 r53764  
    738738                        }
    739739                        else
    740                             VBoxServiceError("ConsoleKit: unable to retrieve user for session '%s' (msg type=%d): %s",
    741                                              *ppszCurSession, dbus_message_get_type(pMsgUnixUser),
    742                                              dbus_error_is_set(&dbErr) ? dbErr.message : "No error information available");
     740                        {
     741                            static int s_iBitchedAboutConsoleKit = 0;
     742                            if (s_iBitchedAboutConsoleKit < 1)
     743                            {
     744                                s_iBitchedAboutConsoleKit++;
     745                                VBoxServiceError("ConsoleKit: unable to retrieve user for session '%s' (msg type=%d): %s\n",
     746                                                 *ppszCurSession, dbus_message_get_type(pMsgUnixUser),
     747                                                 dbus_error_is_set(&dbErr) ? dbErr.message : "No error information available");
     748                            }
     749                        }
    743750
    744751                        if (pMsgUnixUser)
     
    750757                else
    751758                {
    752                     VBoxServiceError("ConsoleKit: unable to retrieve session parameters (msg type=%d): %s",
     759                    VBoxServiceError("ConsoleKit: unable to retrieve session parameters (msg type=%d): %s\n",
    753760                                     dbus_message_get_type(pMsgSessions),
    754761                                     dbus_error_is_set(&dbErr) ? dbErr.message : "No error information available");
     
    766773        {
    767774            static int s_iBitchedAboutConsoleKit = 0;
    768             if (s_iBitchedAboutConsoleKit++ < 3)
     775            if (s_iBitchedAboutConsoleKit < 3)
     776            {
     777                s_iBitchedAboutConsoleKit++;
    769778                VBoxServiceError("Unable to invoke ConsoleKit (%d/3) -- maybe not installed / used? Error: %s\n",
    770779                                 s_iBitchedAboutConsoleKit,
    771780                                 dbus_error_is_set(&dbErr) ? dbErr.message : "No error information available");
     781            }
    772782        }
    773783
     
    778788    {
    779789        static int s_iBitchedAboutDBus = 0;
    780         if (s_iBitchedAboutDBus++ < 3)
     790        if (s_iBitchedAboutDBus < 3)
     791        {
     792            s_iBitchedAboutDBus++;
    781793            VBoxServiceError("Unable to connect to system D-Bus (%d/3): %s\n", s_iBitchedAboutDBus,
    782794                             pConnection && dbus_error_is_set(&dbErr) ? dbErr.message : "D-Bus not installed");
     795        }
    783796    }
    784797
     
    14561469                    {
    14571470                        static int s_iBitchedAboutLAClientInfo = 0;
    1458                         if (s_iBitchedAboutLAClientInfo++ < 10)
     1471                        if (s_iBitchedAboutLAClientInfo < 10)
     1472                        {
     1473                            s_iBitchedAboutLAClientInfo++;
    14591474                            VBoxServiceError("Error getting active location awareness client info, rc=%Rrc\n", rc2);
     1475                        }
    14601476                    }
    14611477                }
     
    14781494            static int s_iBitchedAboutLAClient = 0;
    14791495            if (   (rc2 != VERR_NOT_FOUND) /* No location awareness installed, skip. */
    1480                 && s_iBitchedAboutLAClient++ < 3)
     1496                && s_iBitchedAboutLAClient < 3)
     1497            {
     1498                s_iBitchedAboutLAClient++;
    14811499                VBoxServiceError("VRDP: Querying connected location awareness client failed with rc=%Rrc\n", rc2);
     1500            }
    14821501        }
    14831502
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