Do not use UTF-8 in net_trace!().

This may interact badly with other tooling.
This commit is contained in:
whitequark 2017-01-14 07:09:46 +00:00
parent dc8809288f
commit f7bc7fe364
1 changed files with 2 additions and 2 deletions

View File

@ -490,10 +490,10 @@ impl<'a> TcpSocket<'a> {
fn set_state(&mut self, state: State) {
if self.state != state {
if self.remote_endpoint.addr.is_unspecified() {
net_trace!("tcp:{}: state={}{}",
net_trace!("tcp:{}: state={}=>{}",
self.local_endpoint, self.state, state);
} else {
net_trace!("tcp:{}:{}: state={}{}",
net_trace!("tcp:{}:{}: state={}=>{}",
self.local_endpoint, self.remote_endpoint, self.state, state);
}
}