From c1b9831bbe4ac55ea5d7d93681421ebe1f64ed88 Mon Sep 17 00:00:00 2001 From: "Bruno G. Albuquerque" Date: Fri, 2 May 2008 17:02:41 +0000 Subject: [PATCH] - Moved AHCI_PORT_TRACING define to its correct position. - Prepend "ahci port" to all trace entries in ahci_port.cpp. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25293 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- build/config_headers/tracing_config.h | 2 +- src/add-ons/kernel/busses/scsi/ahci/ahci_port.cpp | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/build/config_headers/tracing_config.h b/build/config_headers/tracing_config.h index 1d05fc24fc..79165bddfd 100644 --- a/build/config_headers/tracing_config.h +++ b/build/config_headers/tracing_config.h @@ -18,6 +18,7 @@ // macros specifying the tracing level for individual components (0 is disabled) +#define AHCI_PORT_TRACING 0 #define BFS_TRACING 0 #define BLOCK_CACHE_TRANSACTION_TRACING 0 #define BMESSAGE_TRACING 0 @@ -36,7 +37,6 @@ #define TEAM_TRACING 0 #define USER_MALLOC_TRACING 0 #define WAIT_FOR_OBJECTS_TRACING 0 -#define AHCI_PORT_TRACING 0 #endif // ENABLE_TRACING diff --git a/src/add-ons/kernel/busses/scsi/ahci/ahci_port.cpp b/src/add-ons/kernel/busses/scsi/ahci/ahci_port.cpp index ce616c507d..96cd1d725f 100644 --- a/src/add-ons/kernel/busses/scsi/ahci/ahci_port.cpp +++ b/src/add-ons/kernel/busses/scsi/ahci/ahci_port.cpp @@ -37,7 +37,8 @@ class AHCIPortTraceEntry : public AbstractTraceEntry { void AddDump(TraceOutput& out, const char* name) { - out.Print(name); + out.Print("ahci port"); + out.Print(" - %s - ", name); out.Print("controller: %p", fController); out.Print(", index: %d", fIndex); } @@ -60,9 +61,9 @@ class AHCIPortPrdTable : public AHCIPortTraceEntry { void AddDump(TraceOutput& out) { - AHCIPortTraceEntry::AddDump(out, " - prd table: "); + AHCIPortTraceEntry::AddDump(out, "prd table"); - out.Print("address: %p", fAddress); + out.Print(", address: %p", fAddress); out.Print(", size: %lu", fSize); }