Skip to content

Commit

Permalink
Capitalize log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Legend-Master committed Jan 21, 2024
1 parent b22c052 commit c01d98a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ fn read_and_send(tap_device: &Device, socket: &UdpSocket) -> ! {
match get_mac_addresses(ethernet_frame) {
Ok((source_mac_address, _)) => {
if source_mac_address != mac_address {
log!("not device source mac? {source_mac_address}");
log!("Not device source mac? {source_mac_address}");
continue;
};
// log!(
Expand All @@ -149,7 +149,7 @@ fn read_and_send(tap_device: &Device, socket: &UdpSocket) -> ! {
}
Err(_) => {
// Invalid packet
log!("only {bytes_read} bytes read from TAP, ignoring");
log!("Only {bytes_read} bytes read from TAP, ignoring");
continue;
}
}
Expand Down
2 changes: 1 addition & 1 deletion server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ fn purge_timedout_connections(
// Release ip from peer
ip_pool.lock().unwrap().insert(connection.ip);
log!(
"purged {} from {}",
"Purged {} from {}",
connection.ip,
connection.socket_address
);
Expand Down

0 comments on commit c01d98a

Please sign in to comment.