Some more report format fine tuning.
- Removed extraneous tabs. - Shortened locking column in area/abbreviated some names.
This commit is contained in:
@@ -259,7 +259,7 @@ DebugReportGenerator::_DumpLoadedImages(BString& _output)
|
|||||||
|
|
||||||
Image* image = NULL;
|
Image* image = NULL;
|
||||||
data.SetToFormat("\tID\t\tText Base\tText End\tData Base\tData"
|
data.SetToFormat("\tID\t\tText Base\tText End\tData Base\tData"
|
||||||
" End\tType\t\tName\n\t");
|
" End\tType\tName\n\t");
|
||||||
_output << data;
|
_output << data;
|
||||||
_output.Append('-', 80);
|
_output.Append('-', 80);
|
||||||
_output.Append("\n");
|
_output.Append("\n");
|
||||||
@@ -272,7 +272,7 @@ DebugReportGenerator::_DumpLoadedImages(BString& _output)
|
|||||||
|
|
||||||
data.SetToFormat("\t%" B_PRId32 "\t0x%08" B_PRIx64 "\t"
|
data.SetToFormat("\t%" B_PRId32 "\t0x%08" B_PRIx64 "\t"
|
||||||
"0x%08" B_PRIx64 "\t0x%08" B_PRIx64 "\t0x%08" B_PRIx64 "\t"
|
"0x%08" B_PRIx64 "\t0x%08" B_PRIx64 "\t0x%08" B_PRIx64 "\t"
|
||||||
"%-7s\t\t%s\n", info.ImageID(), textBase, textBase + info.TextSize(),
|
"%-7s\t%s\n", info.ImageID(), textBase, textBase + info.TextSize(),
|
||||||
dataBase, dataBase + info.DataSize(),
|
dataBase, dataBase + info.DataSize(),
|
||||||
UiUtils::ImageTypeToString(info.Type(), buffer,
|
UiUtils::ImageTypeToString(info.Type(), buffer,
|
||||||
sizeof(buffer)), info.Name().String());
|
sizeof(buffer)), info.Name().String());
|
||||||
@@ -299,7 +299,7 @@ DebugReportGenerator::_DumpAreas(BString& _output)
|
|||||||
|
|
||||||
_output << "\nAreas:\n";
|
_output << "\nAreas:\n";
|
||||||
BString data;
|
BString data;
|
||||||
data.SetToFormat("\tID\t\tBase\t\tEnd\t\t\tSize (KiB)\tProtection\tLocking\t\t\t\tName\n\t");
|
data.SetToFormat("\tID\t\tBase\t\tEnd\t\t\tSize (KiB)\tProtection\tLocking\t\t\tName\n\t");
|
||||||
_output << data;
|
_output << data;
|
||||||
_output.Append('-', 80);
|
_output.Append('-', 80);
|
||||||
_output.Append("\n");
|
_output.Append("\n");
|
||||||
@@ -309,7 +309,7 @@ DebugReportGenerator::_DumpAreas(BString& _output)
|
|||||||
for (int32 i = 0; (info = areas.ItemAt(i)) != NULL; i++) {
|
for (int32 i = 0; (info = areas.ItemAt(i)) != NULL; i++) {
|
||||||
try {
|
try {
|
||||||
data.SetToFormat("\t%" B_PRId32 "\t0x%08" B_PRIx64 "\t"
|
data.SetToFormat("\t%" B_PRId32 "\t0x%08" B_PRIx64 "\t"
|
||||||
"0x%08" B_PRIx64 "\t%10" B_PRId64 "\t%-11s\t%-17s\t%s\n",
|
"0x%08" B_PRIx64 "\t%10" B_PRId64 "\t%-11s\t%-14s\t%s\n",
|
||||||
info->AreaID(), info->BaseAddress(), info->BaseAddress()
|
info->AreaID(), info->BaseAddress(), info->BaseAddress()
|
||||||
+ info->Size(), info->Size() / 1024,
|
+ info->Size(), info->Size() / 1024,
|
||||||
UiUtils::AreaProtectionFlagsToString(info->Protection(),
|
UiUtils::AreaProtectionFlagsToString(info->Protection(),
|
||||||
@@ -342,15 +342,15 @@ DebugReportGenerator::_DumpSemaphores(BString& _output)
|
|||||||
|
|
||||||
_output << "\nSemaphores:\n";
|
_output << "\nSemaphores:\n";
|
||||||
BString data;
|
BString data;
|
||||||
data.SetToFormat("\tID\t\tCount\tLast Holder\t\tName\n\t");
|
data.SetToFormat("\tID\t\tCount\tLast Holder\tName\n\t");
|
||||||
_output << data;
|
_output << data;
|
||||||
_output.Append('-', 80);
|
_output.Append('-', 60);
|
||||||
_output.Append("\n");
|
_output.Append("\n");
|
||||||
SemaphoreInfo* info;
|
SemaphoreInfo* info;
|
||||||
for (int32 i = 0; (info = semaphores.ItemAt(i)) != NULL; i++) {
|
for (int32 i = 0; (info = semaphores.ItemAt(i)) != NULL; i++) {
|
||||||
try {
|
try {
|
||||||
data.SetToFormat("\t%" B_PRId32 "\t%5" B_PRId32 "\t%11" B_PRId32
|
data.SetToFormat("\t%" B_PRId32 "\t%5" B_PRId32 "\t%11" B_PRId32
|
||||||
"\t\t%s\n", info->SemID(), info->Count(),
|
"\t%s\n", info->SemID(), info->Count(),
|
||||||
info->LatestHolder(), info->Name().String());
|
info->LatestHolder(), info->Name().String());
|
||||||
|
|
||||||
_output << data;
|
_output << data;
|
||||||
|
|||||||
@@ -173,7 +173,7 @@ UiUtils::AreaLockingFlagsToString(uint32 flags, char* buffer,
|
|||||||
snprintf(buffer, bufferSize, "32-bit full");
|
snprintf(buffer, bufferSize, "32-bit full");
|
||||||
break;
|
break;
|
||||||
case B_32_BIT_CONTIGUOUS:
|
case B_32_BIT_CONTIGUOUS:
|
||||||
snprintf(buffer, bufferSize, "32-bit contiguous");
|
snprintf(buffer, bufferSize, "32-bit contig.");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
snprintf(buffer, bufferSize, "unknown");
|
snprintf(buffer, bufferSize, "unknown");
|
||||||
|
|||||||
Reference in New Issue
Block a user