mirror of
https://github.com/genodelabs/genode.git
synced 2025-05-09 20:12:57 +00:00
Reduce debug messages of UART driver
This commit is contained in:
parent
0ca774592f
commit
4fd932f7c1
@ -75,7 +75,7 @@ int main(int argc, char **argv)
|
|||||||
enum { BAUD = 115200 };
|
enum { BAUD = 115200 };
|
||||||
if (baudrate == 0)
|
if (baudrate == 0)
|
||||||
{
|
{
|
||||||
PDBG("Baudrate is not defined. Use default 115200");
|
PINF("Baudrate is not defined. Use default 115200");
|
||||||
baudrate = BAUD;
|
baudrate = BAUD;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -164,11 +164,7 @@ namespace Uart {
|
|||||||
unsigned uart_baudrate = 0;
|
unsigned uart_baudrate = 0;
|
||||||
try {
|
try {
|
||||||
policy.attribute("baudrate").value(&uart_baudrate);
|
policy.attribute("baudrate").value(&uart_baudrate);
|
||||||
} catch (Xml_node::Nonexistent_attribute) {
|
} catch (Xml_node::Nonexistent_attribute) { }
|
||||||
PDBG("Missing \"baudrate\" attribute in policy definition");
|
|
||||||
}
|
|
||||||
|
|
||||||
PDBG("UART%d %d", uart_index, uart_baudrate);
|
|
||||||
|
|
||||||
return new (md_alloc())
|
return new (md_alloc())
|
||||||
Session_component(_driver_factory, uart_index, uart_baudrate);
|
Session_component(_driver_factory, uart_index, uart_baudrate);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user