Use const references instead of pointers for the print functions.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41417 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -667,7 +667,7 @@ ioapic_init(kernel_args* args)
|
||||
return;
|
||||
}
|
||||
|
||||
print_irq_routing_table(&table);
|
||||
print_irq_routing_table(table);
|
||||
|
||||
status = enable_irq_routing(acpiModule, table);
|
||||
if (status != B_OK) {
|
||||
|
||||
@@ -45,7 +45,7 @@ irq_descriptor::irq_descriptor()
|
||||
|
||||
|
||||
void
|
||||
print_irq_descriptor(irq_descriptor* descriptor)
|
||||
print_irq_descriptor(const irq_descriptor& descriptor)
|
||||
{
|
||||
const char* activeHighString = "active high";
|
||||
const char* activeLowString = " active low";
|
||||
@@ -53,10 +53,10 @@ print_irq_descriptor(irq_descriptor* descriptor)
|
||||
const char* edgeTriggeredString = "edge triggered";
|
||||
|
||||
dprintf("irq: %u, shareable: %u, polarity: %s, trigger_mode: %s\n",
|
||||
descriptor->irq, descriptor->shareable,
|
||||
descriptor->polarity == B_HIGH_ACTIVE_POLARITY ? activeHighString
|
||||
descriptor.irq, descriptor.shareable,
|
||||
descriptor.polarity == B_HIGH_ACTIVE_POLARITY ? activeHighString
|
||||
: activeLowString,
|
||||
descriptor->trigger_mode == B_LEVEL_TRIGGERED ? levelTriggeredString
|
||||
descriptor.trigger_mode == B_LEVEL_TRIGGERED ? levelTriggeredString
|
||||
: edgeTriggeredString);
|
||||
}
|
||||
|
||||
@@ -79,11 +79,11 @@ print_irq_routing_entry(const irq_routing_entry& entry)
|
||||
|
||||
|
||||
void
|
||||
print_irq_routing_table(IRQRoutingTable* table)
|
||||
print_irq_routing_table(const IRQRoutingTable& table)
|
||||
{
|
||||
dprintf("IRQ routing table with %i entries\n", (int)table->Count());
|
||||
for (int i = 0; i < table->Count(); i++)
|
||||
print_irq_routing_entry(table->ElementAt(i));
|
||||
dprintf("IRQ routing table with %i entries\n", (int)table.Count());
|
||||
for (int i = 0; i < table.Count(); i++)
|
||||
print_irq_routing_entry(table.ElementAt(i));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -68,8 +68,8 @@ struct link_device {
|
||||
};
|
||||
|
||||
|
||||
void print_irq_descriptor(irq_descriptor* descriptor);
|
||||
void print_irq_routing_table(IRQRoutingTable* table);
|
||||
void print_irq_descriptor(const irq_descriptor& descriptor);
|
||||
void print_irq_routing_table(const IRQRoutingTable& table);
|
||||
|
||||
|
||||
status_t prepare_irq_routing(acpi_module_info* acpi, IRQRoutingTable& table,
|
||||
|
||||
Reference in New Issue
Block a user