mirror of https://github.com/vinc/moros.git
Fix debug issue
This commit is contained in:
parent
15d7132a76
commit
51358936fa
|
@ -155,11 +155,11 @@ impl smoltcp::phy::TxToken for TxToken {
|
||||||
{
|
{
|
||||||
let config = self.device.config();
|
let config = self.device.config();
|
||||||
let buf = self.device.next_tx_buffer(len);
|
let buf = self.device.next_tx_buffer(len);
|
||||||
|
let res = f(buf);
|
||||||
if config.is_debug_enabled() {
|
if config.is_debug_enabled() {
|
||||||
debug!("NET Packet Transmitted");
|
debug!("NET Packet Transmitted");
|
||||||
usr::hex::print_hex(buf);
|
usr::hex::print_hex(buf);
|
||||||
}
|
}
|
||||||
let res = f(buf);
|
|
||||||
self.device.transmit_packet(len);
|
self.device.transmit_packet(len);
|
||||||
self.device.stats().tx_add(len as u64);
|
self.device.stats().tx_add(len as u64);
|
||||||
res
|
res
|
||||||
|
|
Loading…
Reference in New Issue