Prefix LOG and CHECK with AOS_
This prepares us for introducing glog more widely and transitioning
things over where they make sense.
Change-Id: Ic6c208882407bc2153fe875ffc736d66f5c8ade5
diff --git a/aos/event.cc b/aos/event.cc
index dd43dc8..a0115dc 100644
--- a/aos/event.cc
+++ b/aos/event.cc
@@ -16,8 +16,8 @@
while (__atomic_load_n(&impl_, __ATOMIC_SEQ_CST) == 0) {
const int ret = futex_wait(&impl_);
if (ret != 0) {
- CHECK_EQ(-1, ret);
- PLOG(FATAL, "futex_wait(%p) failed", &impl_);
+ AOS_CHECK_EQ(-1, ret);
+ AOS_PLOG(FATAL, "futex_wait(%p) failed", &impl_);
}
}
}
@@ -37,8 +37,8 @@
const int ret = futex_wait_timeout(&impl_, &timeout_timespec);
if (ret != 0) {
if (ret == 2) return false;
- CHECK_EQ(-1, ret);
- PLOG(FATAL, "futex_wait(%p) failed", &impl_);
+ AOS_CHECK_EQ(-1, ret);
+ AOS_PLOG(FATAL, "futex_wait(%p) failed", &impl_);
}
}
}
@@ -47,7 +47,7 @@
// to condition variable-based implementations.
void Event::Set() {
if (futex_set(&impl_) == -1) {
- PLOG(FATAL, "futex_set(%p) failed", &impl_);
+ AOS_PLOG(FATAL, "futex_set(%p) failed", &impl_);
}
}