diff --git a/tpm/src/emulator.rs b/tpm/src/emulator.rs index 16e88c5af..a0e9ab6ec 100644 --- a/tpm/src/emulator.rs +++ b/tpm/src/emulator.rs @@ -9,6 +9,7 @@ use std::{mem, ptr}; use anyhow::anyhow; use libc::{c_void, sockaddr_storage, socklen_t}; +use log::{debug, error}; use thiserror::Error; use crate::socket::SocketDev; diff --git a/tpm/src/lib.rs b/tpm/src/lib.rs index 46a7422d7..ad021b350 100644 --- a/tpm/src/lib.rs +++ b/tpm/src/lib.rs @@ -3,9 +3,6 @@ // SPDX-License-Identifier: Apache-2.0 // -#[macro_use] -extern crate log; - pub mod emulator; pub mod socket; diff --git a/tpm/src/socket.rs b/tpm/src/socket.rs index 0c248e43e..ca4ae5435 100644 --- a/tpm/src/socket.rs +++ b/tpm/src/socket.rs @@ -8,6 +8,7 @@ use std::os::unix::io::{AsRawFd, RawFd}; use std::os::unix::net::UnixStream; use anyhow::anyhow; +use log::debug; use thiserror::Error; use vmm_sys_util::sock_ctrl_msg::ScmSocket;