From 51b33b65943d47a3826be9763728815ba2b9e7d5 Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Fri, 20 Oct 2023 18:33:27 +0200 Subject: [PATCH] nihed-cros-libva: get rid of log dependency --- nihed-cros-libva/Cargo.toml | 1 - nihed-cros-libva/src/buffer.rs | 3 +-- nihed-cros-libva/src/config.rs | 3 +-- nihed-cros-libva/src/context.rs | 3 +-- 4 files changed, 3 insertions(+), 7 deletions(-) diff --git a/nihed-cros-libva/Cargo.toml b/nihed-cros-libva/Cargo.toml index 6f88b97..b709fe0 100644 --- a/nihed-cros-libva/Cargo.toml +++ b/nihed-cros-libva/Cargo.toml @@ -9,7 +9,6 @@ edition = "2021" [dependencies] anyhow = "1" bitflags = "1.3" -log = { version = "0", features = ["release_max_level_debug"] } [build-dependencies] pkg-config = "0.3.26" diff --git a/nihed-cros-libva/src/buffer.rs b/nihed-cros-libva/src/buffer.rs index 41d5934..62f8f51 100644 --- a/nihed-cros-libva/src/buffer.rs +++ b/nihed-cros-libva/src/buffer.rs @@ -17,7 +17,6 @@ pub use vp9::*; use std::rc::Rc; use anyhow::Result; -use log::error; use crate::bindings; use crate::status::Status; @@ -136,7 +135,7 @@ impl Drop for Buffer { Status(unsafe { bindings::vaDestroyBuffer(self.context.display().handle(), self.id) }) .check(); if status.is_err() { - error!("vaDestroyBuffer failed: {}", status.unwrap_err()); + println!("vaDestroyBuffer failed: {}", status.unwrap_err()); } } } diff --git a/nihed-cros-libva/src/config.rs b/nihed-cros-libva/src/config.rs index f073150..af1db85 100644 --- a/nihed-cros-libva/src/config.rs +++ b/nihed-cros-libva/src/config.rs @@ -5,7 +5,6 @@ use std::rc::Rc; use anyhow::Result; -use log::error; use crate::bindings; use crate::display::Display; @@ -121,7 +120,7 @@ impl Drop for Config { let status = Status(unsafe { bindings::vaDestroyConfig(self.display.handle(), self.id) }).check(); if status.is_err() { - error!("vaDestroyConfig failed: {}", status.unwrap_err()); + println!("vaDestroyConfig failed: {}", status.unwrap_err()); } } } diff --git a/nihed-cros-libva/src/context.rs b/nihed-cros-libva/src/context.rs index 45a5c45..cc3136a 100644 --- a/nihed-cros-libva/src/context.rs +++ b/nihed-cros-libva/src/context.rs @@ -5,7 +5,6 @@ use std::rc::Rc; use anyhow::Result; -use log::error; use crate::bindings; use crate::buffer::Buffer; @@ -89,7 +88,7 @@ impl Drop for Context { let status = Status(unsafe { bindings::vaDestroyContext(self.display.handle(), self.id) }).check(); if status.is_err() { - error!("vaDestroyContext failed: {}", status.unwrap_err()); + println!("vaDestroyContext failed: {}", status.unwrap_err()); } } } -- 2.30.2