VirtualBox

Changeset 40107 in vbox for trunk/src/VBox/Storage


Ignore:
Timestamp:
Feb 13, 2012 7:36:26 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
76248
Message:

Storage: The backend has to provide the nweline when calling vdIfErrorMessage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Storage/VHD.cpp

    r40034 r40107  
    31293129            }
    31303130            else
    3131                 vdIfErrorMessage(pIfError, "Missing footer structure, using backup");
     3131                vdIfErrorMessage(pIfError, "Missing footer structure, using backup\n");
    31323132
    31333133            /* Remember to fix the footer structure. */
     
    31463146        if (u32ChkSumOld != u32ChkSum)
    31473147        {
    3148             vdIfErrorMessage(pIfError, "Checksum is invalid (should be %u got %u), repairing",
     3148            vdIfErrorMessage(pIfError, "Checksum is invalid (should be %u got %u), repairing\n",
    31493149                             u32ChkSum, u32ChkSumOld);
    31503150            fRepairFooter = true;
     
    32043204            if (u32ChkSumOld != u32ChkSum)
    32053205            {
    3206                 vdIfErrorMessage(pIfError, "Checksum of dynamic disk header is invalid (should be %u got %u), repairing",
     3206                vdIfErrorMessage(pIfError, "Checksum of dynamic disk header is invalid (should be %u got %u), repairing\n",
    32073207                                 u32ChkSum, u32ChkSumOld);
    32083208                fRepairDynHeader = true;
     
    32583258            }
    32593259
    3260             vdIfErrorMessage(pIfError, "First data block at sector %u", idxMinBlock);
     3260            vdIfErrorMessage(pIfError, "First data block at sector %u\n", idxMinBlock);
    32613261
    32623262            for (uint32_t i = 0; i < cBatEntries; i++)
     
    32723272                    if (offBlock + cbBlock > cbFile)
    32733273                    {
    3274                         vdIfErrorMessage(pIfError, "Entry %u points to invalid offset %llu, clearing",
     3274                        vdIfErrorMessage(pIfError, "Entry %u points to invalid offset %llu, clearing\n",
    32753275                                         i, offBlock);
    32763276                        paBat[i] = 0;
     
    32793279                    else if (offBlock + cbBlock > offFooter)
    32803280                    {
    3281                         vdIfErrorMessage(pIfError, "Entry %u intersects with footer, aligning footer",
     3281                        vdIfErrorMessage(pIfError, "Entry %u intersects with footer, aligning footer\n",
    32823282                                         i);
    32833283                        offFooter = offBlock + cbBlock;
     
    32873287                    if (ASMBitTestAndSet(pu32BlockBitmap, (paBat[i] - idxMinBlock) / (cbBlock / VHD_SECTOR_SIZE)))
    32883288                    {
    3289                         vdIfErrorMessage(pIfError, "Entry %u points to an already referenced data block, clearing",
     3289                        vdIfErrorMessage(pIfError, "Entry %u points to an already referenced data block, clearing\n",
    32903290                                         i);
    32913291                        paBat[i] = 0;
     
    32983298        /* Write repaired structures now. */
    32993299        if (!(fRepairBat || fRepairDynHeader || fRepairFooter))
    3300             vdIfErrorMessage(pIfError, "VHD image is in a consistent state, no repair required");
     3300            vdIfErrorMessage(pIfError, "VHD image is in a consistent state, no repair required\n");
    33013301        else if (!(fFlags & VD_REPAIR_DRY_RUN))
    33023302        {
     
    33063306                    paBat[i] = RT_H2BE_U32(paBat[i]);
    33073307
    3308                 vdIfErrorMessage(pIfError, "Writing repaired block allocation table...");
     3308                vdIfErrorMessage(pIfError, "Writing repaired block allocation table...\n");
    33093309
    33103310                rc = vdIfIoIntFileWriteSync(pIfIo, pStorage, offBat, paBat,
     
    33233323                Assert(fDynamic);
    33243324
    3325                 vdIfErrorMessage(pIfError, "Writing repaired dynamic disk header...");
     3325                vdIfErrorMessage(pIfError, "Writing repaired dynamic disk header...\n");
    33263326                rc = vdIfIoIntFileWriteSync(pIfIo, pStorage, offDynamicDiskHeader, &dynamicDiskHeader,
    33273327                                            sizeof(VHDDynamicDiskHeader), NULL);
     
    33373337            if (fRepairFooter)
    33383338            {
    3339                 vdIfErrorMessage(pIfError, "Writing repaired Footer...");
     3339                vdIfErrorMessage(pIfError, "Writing repaired Footer...\n");
    33403340
    33413341                if (fDynamic)
     
    33643364            }
    33653365
    3366             vdIfErrorMessage(pIfError, "Corrupted VHD image repaired successfully");
     3366            vdIfErrorMessage(pIfError, "Corrupted VHD image repaired successfully\n");
    33673367        }
    33683368    } while(0);
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