flog.rs: use qualified name in FLOG! macro

Otherwise this macro fails when used in a context that doesn't import
this name.
This commit is contained in:
Johannes Altmanninger
2023-02-05 08:42:06 +01:00
parent 7347c90d1e
commit a446a16471

View File

@@ -150,7 +150,7 @@ pub fn flog_impl(s: &str) {
macro_rules! FLOG {
($category:ident, $($elem:expr),+) => {
if crate::flog::categories::$category.enabled.load(Ordering::Relaxed) {
if crate::flog::categories::$category.enabled.load(std::sync::atomic::Ordering::Relaxed) {
let mut vs = Vec::new();
$(
vs.push(format!("{:?}", $elem));