diff options
| author | David Lönnhager <david.l@mullvad.net> | 2022-06-14 16:31:47 +0200 |
|---|---|---|
| committer | David Lönnhager <david.l@mullvad.net> | 2022-06-15 17:53:41 +0200 |
| commit | 5e641dbf5be1583bc69c20df83a23060b551d3dd (patch) | |
| tree | 45539280afc46b80ac306a5ebc68129fae09a0f2 /talpid-core/src | |
| parent | e8941bec667e9244be4f6840f0708c3d635449a1 (diff) | |
| download | mullvadvpn-5e641dbf5be1583bc69c20df83a23060b551d3dd.tar.xz mullvadvpn-5e641dbf5be1583bc69c20df83a23060b551d3dd.zip | |
Print ST paths using Display trait
Diffstat (limited to 'talpid-core/src')
| -rw-r--r-- | talpid-core/src/split_tunnel/windows/driver.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/talpid-core/src/split_tunnel/windows/driver.rs b/talpid-core/src/split_tunnel/windows/driver.rs index 6b6b2b2ea7..2b612ff085 100644 --- a/talpid-core/src/split_tunnel/windows/driver.rs +++ b/talpid-core/src/split_tunnel/windows/driver.rs @@ -18,6 +18,7 @@ use std::{ fs::OpenOptionsExt, io::{AsRawHandle, RawHandle}, }, + path::Path, ptr, time::Duration, }; @@ -354,7 +355,7 @@ impl DeviceHandle { log::debug!( "{}\nPath: {}", error.display_chain_with_msg("Ignoring path on unmounted volume"), - app.as_ref().to_string_lossy() + Path::new(app.as_ref()).display() ); } Err(error) => return Err(error), @@ -368,7 +369,7 @@ impl DeviceHandle { log::debug!("Excluded device paths:"); for path in &device_paths { - log::debug!(" {:?}", path); + log::debug!(" {}", Path::new(&path).display()); } let config = make_process_config(&device_paths); |
