From 6699290766dac9b47c75f118da2b107bcb3b88f3 Mon Sep 17 00:00:00 2001 From: Christian Helmuth Date: Thu, 17 Dec 2015 14:53:11 +0100 Subject: [PATCH] Optional label in Nic::Connection constructor Fixes #1826 --- repos/os/include/nic_session/connection.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/repos/os/include/nic_session/connection.h b/repos/os/include/nic_session/connection.h index 7612ac6211..22f1d56e5b 100644 --- a/repos/os/include/nic_session/connection.h +++ b/repos/os/include/nic_session/connection.h @@ -33,12 +33,13 @@ struct Nic::Connection : Genode::Connection, 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("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) { } };