Optional label in Nic::Connection constructor

Fixes #1826
This commit is contained in:
Christian Helmuth 2015-12-17 14:53:11 +01:00
parent c43bd472ac
commit 6699290766
1 changed files with 4 additions and 3 deletions

View File

@ -33,12 +33,13 @@ struct Nic::Connection : Genode::Connection<Session>, Session_client
*/
Connection(Genode::Range_allocator *tx_block_alloc,
Genode::size_t tx_buf_size,
Genode::size_t rx_buf_size)
Genode::size_t rx_buf_size,
char const *label = "")
:
Genode::Connection<Session>(
session("ram_quota=%zd, tx_buf_size=%zd, rx_buf_size=%zd",
session("ram_quota=%zd, tx_buf_size=%zd, rx_buf_size=%zd, label=\"%s\"",
6*4096 + tx_buf_size + rx_buf_size,
tx_buf_size, rx_buf_size)),
tx_buf_size, rx_buf_size, label)),
Session_client(cap(), tx_block_alloc)
{ }
};