VirtualBox

Changeset 14959 in vbox for trunk/src


Ignore:
Timestamp:
Dec 3, 2008 9:25:17 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
40320
Message:

no trailing \n when using ComAssertMsg*

Location:
trunk/src/VBox/Main
Files:
10 edited

Legend:

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

    r14772 r14959  
    527527#endif
    528528            default:
    529                 ComAssertMsgFailedRet (("Wrong audio driver type! driver = %d\n",
     529                ComAssertMsgFailedRet (("Wrong audio driver type! driver = %d",
    530530                                        mData->mAudioDriver),
    531531                                       E_FAIL);
  • trunk/src/VBox/Main/BIOSSettingsImpl.cpp

    r14772 r14959  
    568568                mData->mBootMenuMode = BIOSBootMenuMode_MessageAndMenu;
    569569            else
    570                 ComAssertMsgFailedRet (("Invalid boot menu mode '%s'\n", modeStr),
     570                ComAssertMsgFailedRet (("Invalid boot menu mode '%s'", modeStr),
    571571                                       E_FAIL);
    572572        }
     
    601601                mData->mIDEControllerType = IDEControllerType_PIIX4;
    602602            else
    603                 ComAssertMsgFailedRet (("Invalid boot menu mode '%s'\n", typeStr),
     603                ComAssertMsgFailedRet (("Invalid boot menu mode '%s'", typeStr),
    604604                                       E_FAIL);
    605605        }
     
    666666                break;
    667667            default:
    668                 ComAssertMsgFailedRet (("Invalid boot menu type: %d\n",
     668                ComAssertMsgFailedRet (("Invalid boot menu type: %d",
    669669                                        mData->mBootMenuMode),
    670670                                       E_FAIL);
     
    698698                break;
    699699            default:
    700                 ComAssertMsgFailedRet (("Invalid IDE Controller type: %d\n",
     700                ComAssertMsgFailedRet (("Invalid IDE Controller type: %d",
    701701                                        mData->mIDEControllerType),
    702702                                       E_FAIL);
  • trunk/src/VBox/Main/ConsoleImpl.cpp

    r14849 r14959  
    14411441                              "VMPowerDown");
    14421442    ComAssertMsgRCRet (vrc,
    1443          ("Could not create VMPowerDown thread (%Rrc)\n", vrc), E_FAIL);
     1443         ("Could not create VMPowerDown thread (%Rrc)", vrc), E_FAIL);
    14441444
    14451445    /* task is now owned by powerDownThread(), so release it */
     
    18181818                                  0, RTTHREADTYPE_MAIN_WORKER, 0, "VMSave");
    18191819
    1820         ComAssertMsgRCBreak (vrc, ("Could not create VMSave thread (%Rrc)\n", vrc),
     1820        ComAssertMsgRCBreak (vrc, ("Could not create VMSave thread (%Rrc)", vrc),
    18211821                             rc = E_FAIL);
    18221822
     
    23712371                                      0, RTTHREADTYPE_MAIN_WORKER, 0, "VMTakeSnap");
    23722372
    2373             ComAssertMsgRCBreak (vrc, ("Could not create VMTakeSnap thread (%Rrc)\n", vrc),
     2373            ComAssertMsgRCBreak (vrc, ("Could not create VMTakeSnap thread (%Rrc)", vrc),
    23742374                                 rc = E_FAIL);
    23752375
     
    45134513                              0, RTTHREADTYPE_MAIN_WORKER, 0, "VMPowerUp");
    45144514
    4515     ComAssertMsgRCRet (vrc, ("Could not create VMPowerUp thread (%Rrc)\n", vrc),
     4515    ComAssertMsgRCRet (vrc, ("Could not create VMPowerUp thread (%Rrc)", vrc),
    45164516                       E_FAIL);
    45174517
  • trunk/src/VBox/Main/DVDDriveImpl.cpp

    r14772 r14959  
    527527            break;
    528528        default:
    529             ComAssertMsgFailedRet (("Invalid drive state: %d\n", mData->mState),
     529            ComAssertMsgFailedRet (("Invalid drive state: %d", mData->mState),
    530530                                    E_FAIL);
    531531    }
  • trunk/src/VBox/Main/FloppyDriveImpl.cpp

    r14772 r14959  
    534534            break;
    535535        default:
    536             ComAssertMsgFailedRet (("Invalid drive state: %d\n", mData->mState),
     536            ComAssertMsgFailedRet (("Invalid drive state: %d", mData->mState),
    537537                                    E_FAIL);
    538538    }
  • trunk/src/VBox/Main/MachineImpl.cpp

    r14934 r14959  
    50845084                mHWData->mBootOrder [position] = DeviceType_Network;
    50855085            else
    5086                 ComAssertMsgFailed (("Invalid device: %s\n", device));
     5086                ComAssertMsgFailed (("Invalid device: %s", device));
    50875087        }
    50885088    }
     
    64466446                default:
    64476447                {
    6448                     ComAssertMsgFailedRet (("Invalid boot device: %d\n",
     6448                    ComAssertMsgFailedRet (("Invalid boot device: %d",
    64496449                                            mHWData->mBootOrder [pos]),
    64506450                                            E_FAIL);
     
    77277727    mIPCSem = ::CreateMutex (NULL, FALSE, mIPCSemName);
    77287728    ComAssertMsgRet (mIPCSem,
    7729                      ("Cannot create IPC mutex '%ls', err=%d\n",
     7729                     ("Cannot create IPC mutex '%ls', err=%d",
    77307730                      mIPCSemName.raw(), ::GetLastError()),
    77317731                     E_FAIL);
     
    77367736    APIRET arc = ::DosCreateMutexSem ((PSZ) ipcSem.raw(), &mIPCSem, 0, FALSE);
    77377737    ComAssertMsgRet (arc == NO_ERROR,
    7738                      ("Cannot create IPC mutex '%s', arc=%ld\n",
     7738                     ("Cannot create IPC mutex '%s', arc=%ld",
    77397739                      ipcSem.raw(), arc),
    77407740                     E_FAIL);
  • trunk/src/VBox/Main/NetworkAdapterImpl.cpp

    r14938 r14959  
    11651165            break;
    11661166        default:
    1167             ComAssertMsgFailedRet (("Invalid network adapter type: %d\n",
     1167            ComAssertMsgFailedRet (("Invalid network adapter type: %d",
    11681168                                    mData->mAdapterType),
    11691169                                   E_FAIL);
  • trunk/src/VBox/Main/SerialPortImpl.cpp

    r14772 r14959  
    209209        mData->mHostMode = PortMode_Disconnected;
    210210    else
    211         ComAssertMsgFailedRet (("Invalid port mode '%s'\n", mode), E_FAIL);
     211        ComAssertMsgFailedRet (("Invalid port mode '%s'", mode), E_FAIL);
    212212
    213213    /* pipe/device path (optional, defaults to null) */
     
    260260            break;
    261261        default:
    262             ComAssertMsgFailedRet (("Invalid serial port mode: %d\n",
     262            ComAssertMsgFailedRet (("Invalid serial port mode: %d",
    263263                                    mData->mHostMode),
    264264                                   E_FAIL);
  • trunk/src/VBox/Main/VirtualBoxImpl.cpp

    r14952 r14959  
    20242024                              RTTHREADFLAGS_WAITABLE, "SVCHelper");
    20252025
    2026     ComAssertMsgRCRet (vrc, ("Could not create SVCHelper thread (%Rrc)\n", vrc),
     2026    ComAssertMsgRCRet (vrc, ("Could not create SVCHelper thread (%Rrc)", vrc),
    20272027                       E_FAIL);
    20282028
     
    38903890    catch (const std::exception &err)
    38913891    {
    3892         ComAssertMsgFailedPos (("Unexpected exception '%s' (%s)\n",
     3892        ComAssertMsgFailedPos (("Unexpected exception '%s' (%s)",
    38933893                                typeid (err).name(), err.what()),
    38943894                               pszFile, iLine, pszFunction);
     
    38973897    catch (...)
    38983898    {
    3899         ComAssertMsgFailedPos (("Unknown exception\n"),
     3899        ComAssertMsgFailedPos (("Unknown exception"),
    39003900                               pszFile, iLine, pszFunction);
    39013901        return E_FAIL;
  • trunk/src/VBox/Main/include/VirtualBoxBase.h

    r14949 r14959  
    275275#define ComAssertComRC(rc)  AssertComRC (rc)
    276276#else
    277 #define ComAssertComRC(rc)  ComAssertMsg (SUCCEEDED (rc), ("COM RC = %Rhrc (0x%08X)\n", (rc), (rc)))
     277#define ComAssertComRC(rc)  ComAssertMsg (SUCCEEDED (rc), ("COM RC = %Rhrc (0x%08X)", (rc), (rc)))
    278278#endif
    279279
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