Changeset 1790 for box/chris/general/lib/backupstore/BackupStoreCheck2.cpp
- Timestamp:
- 03/08/2007 00:29:31 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
box/chris/general/lib/backupstore/BackupStoreCheck2.cpp
r1149 r1790 48 48 else 49 49 { 50 ::printf("Root directory doesn't exist\n");50 BOX_WARNING("Root directory doesn't exist"); 51 51 52 52 ++mNumberErrorsFound; … … 119 119 { 120 120 // Unattached object... 121 ::printf("Object %llx is unattached.\n", pblock->mID[e]);121 BOX_WARNING("Object " << BOX_FORMAT_OBJECTID(pblock->mID[e]) << " is unattached."); 122 122 ++mNumberErrorsFound; 123 123 … … 148 148 if(diffFromObjectID != 0) 149 149 { 150 ::printf("Object %llx is unattached, and is a patch. Deleting, cannot reliably recover.\n", pblock->mID[e]);150 BOX_WARNING("Object " << BOX_FORMAT_OBJECTID(pblock->mID[e]) << " is unattached, and is a patch. Deleting, cannot reliably recover."); 151 151 152 152 // Delete this object instead … … 230 230 if(!mFixErrors) 231 231 { 232 ::printf("Missing directory %llx could be recreated\n", MissingDirectoryID); 232 BOX_WARNING("Missing directory " << 233 BOX_FORMAT_OBJECTID(MissingDirectoryID) << 234 " could be recreated."); 233 235 mDirsAdded.insert(MissingDirectoryID); 234 236 return true; 235 237 } 236 ::printf("Recreating missing directory %llx\n", MissingDirectoryID); 238 239 BOX_WARNING("Recreating missing directory " << 240 BOX_FORMAT_OBJECTID(MissingDirectoryID)); 237 241 238 242 // Create a blank directory … … 301 305 { 302 306 // Found a name which can be used 303 ::printf("Lost and found dir has name %s\n",name);307 BOX_WARNING("Lost and found dir has name " << name); 304 308 break; 305 309 } … … 525 529 catch(...) 526 530 { 527 ::printf("Load of existing store info failed, regenerating.\n");531 BOX_WARNING("Load of existing store info failed, regenerating."); 528 532 ++mNumberErrorsFound; 529 533 } … … 552 556 else 553 557 { 554 ::printf("NOTE: Soft limit for account changed to ensure housekeeping doesn't delete files on next run\n");558 BOX_WARNING("Soft limit for account changed to ensure housekeeping doesn't delete files on next run."); 555 559 } 556 560 if(poldInfo.get() != 0 && poldInfo->GetBlocksHardLimit() > minHard) … … 560 564 else 561 565 { 562 ::printf("NOTE: Hard limit for account changed to ensure housekeeping doesn't delete files on next run\n");566 BOX_WARNING("Hard limit for account changed to ensure housekeeping doesn't delete files on next run."); 563 567 } 564 568 … … 587 591 { 588 592 info->Save(); 589 ::printf("New store info file written successfully.\n");593 BOX_NOTICE("New store info file written successfully."); 590 594 } 591 595 }
Note: See TracChangeset
for help on using the changeset viewer.
