summary refs log tree commit diff stats
path: root/rust/trace/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/trace/src/lib.rs')
-rw-r--r--rust/trace/src/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/rust/trace/src/lib.rs b/rust/trace/src/lib.rs
index 0955461573..e03bce43c4 100644
--- a/rust/trace/src/lib.rs
+++ b/rust/trace/src/lib.rs
@@ -3,6 +3,10 @@
 //! This crate provides macros that aid in using QEMU's tracepoint
 //! functionality.
 
+#[doc(hidden)]
+/// Re-exported item to avoid adding libc as a dependency everywhere.
+pub use libc::{syslog, LOG_INFO};
+
 #[macro_export]
 /// Define the trace-points from the named directory (which should have slashes
 /// replaced by underscore characters) as functions in a module called `trace`.