[haiku-commits] haiku: hrev45552 - in src/apps/debugger: controllers user_interface/util

  • From: anevilyak@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 25 Apr 2013 00:05:14 +0200 (CEST)

hrev45552 adds 1 changeset to branch 'master'
old head: 6b40eddef71e4aa1a8d455a7606c589bacbc9537
new head: 7b6fd5d1a8c1585a055dc7a5c21ed1ee7a47d9c9
overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=7b6fd5d+%5E6b40edd

----------------------------------------------------------------------------

7b6fd5d: Some more report format fine tuning.
  
  - Removed extraneous tabs.
  - Shortened locking column in area/abbreviated some names.

                                      [ Rene Gollent <anevilyak@xxxxxxxxx> ]

----------------------------------------------------------------------------

Revision:    hrev45552
Commit:      7b6fd5d1a8c1585a055dc7a5c21ed1ee7a47d9c9
URL:         http://cgit.haiku-os.org/haiku/commit/?id=7b6fd5d
Author:      Rene Gollent <anevilyak@xxxxxxxxx>
Date:        Wed Apr 24 22:04:01 2013 UTC

----------------------------------------------------------------------------

2 files changed, 8 insertions(+), 8 deletions(-)
src/apps/debugger/controllers/DebugReportGenerator.cpp | 14 +++++++-------
src/apps/debugger/user_interface/util/UiUtils.cpp      |  2 +-

----------------------------------------------------------------------------

diff --git a/src/apps/debugger/controllers/DebugReportGenerator.cpp 
b/src/apps/debugger/controllers/DebugReportGenerator.cpp
index 6850e15..66ac0f2 100644
--- a/src/apps/debugger/controllers/DebugReportGenerator.cpp
+++ b/src/apps/debugger/controllers/DebugReportGenerator.cpp
@@ -259,7 +259,7 @@ DebugReportGenerator::_DumpLoadedImages(BString& _output)
 
        Image* image = NULL;
        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.Append('-', 80);
        _output.Append("\n");
@@ -272,7 +272,7 @@ DebugReportGenerator::_DumpLoadedImages(BString& _output)
 
                        data.SetToFormat("\t%" B_PRId32 "\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(),
                                UiUtils::ImageTypeToString(info.Type(), buffer,
                                        sizeof(buffer)), info.Name().String());
@@ -299,7 +299,7 @@ DebugReportGenerator::_DumpAreas(BString& _output)
 
        _output << "\nAreas:\n";
        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.Append('-', 80);
        _output.Append("\n");
@@ -309,7 +309,7 @@ DebugReportGenerator::_DumpAreas(BString& _output)
        for (int32 i = 0; (info = areas.ItemAt(i)) != NULL; i++) {
                try {
                        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->Size(), info->Size() / 1024,
                                
UiUtils::AreaProtectionFlagsToString(info->Protection(),
@@ -342,15 +342,15 @@ DebugReportGenerator::_DumpSemaphores(BString& _output)
 
        _output << "\nSemaphores:\n";
        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.Append('-', 80);
+       _output.Append('-', 60);
        _output.Append("\n");
        SemaphoreInfo* info;
        for (int32 i = 0; (info = semaphores.ItemAt(i)) != NULL; i++) {
                try {
                        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());
 
                        _output << data;
diff --git a/src/apps/debugger/user_interface/util/UiUtils.cpp 
b/src/apps/debugger/user_interface/util/UiUtils.cpp
index 947003c..330b6bc 100644
--- a/src/apps/debugger/user_interface/util/UiUtils.cpp
+++ b/src/apps/debugger/user_interface/util/UiUtils.cpp
@@ -173,7 +173,7 @@ UiUtils::AreaLockingFlagsToString(uint32 flags, char* 
buffer,
                        snprintf(buffer, bufferSize, "32-bit full");
                        break;
                case B_32_BIT_CONTIGUOUS:
-                       snprintf(buffer, bufferSize, "32-bit contiguous");
+                       snprintf(buffer, bufferSize, "32-bit contig.");
                        break;
                default:
                        snprintf(buffer, bufferSize, "unknown");


Other related posts:

  • » [haiku-commits] haiku: hrev45552 - in src/apps/debugger: controllers user_interface/util - anevilyak