Convert aos over to flatbuffers
Everything builds, and all the tests pass. I suspect that some entries
are missing from the config files, but those will be found pretty
quickly on startup.
There is no logging or live introspection of queue messages.
Change-Id: I496ee01ed68f202c7851bed7e8786cee30df29f5
diff --git a/aos/libc/BUILD b/aos/libc/BUILD
index 48a9ffd..234c29a 100644
--- a/aos/libc/BUILD
+++ b/aos/libc/BUILD
@@ -9,7 +9,7 @@
"aos_strsignal.h",
],
deps = [
- "//aos/logging",
+ "@com_github_google_glog//:glog",
],
)
@@ -20,7 +20,6 @@
],
deps = [
":aos_strsignal",
- "//aos/logging",
"//aos/testing:googletest",
],
)
diff --git a/aos/libc/aos_strsignal.cc b/aos/libc/aos_strsignal.cc
index a3331f9..9262ac6 100644
--- a/aos/libc/aos_strsignal.cc
+++ b/aos/libc/aos_strsignal.cc
@@ -2,14 +2,15 @@
#include <signal.h>
-#include "aos/logging/logging.h"
+#include "glog/logging.h"
const char *aos_strsignal(int signal) {
static thread_local char buffer[512];
if (signal >= SIGRTMIN && signal <= SIGRTMAX) {
- AOS_CHECK(snprintf(buffer, sizeof(buffer), "Real-time signal %d",
- signal - SIGRTMIN) > 0);
+ CHECK_GT(snprintf(buffer, sizeof(buffer), "Real-time signal %d",
+ signal - SIGRTMIN),
+ 0);
return buffer;
}
@@ -17,6 +18,6 @@
return sys_siglist[signal];
}
- AOS_CHECK(snprintf(buffer, sizeof(buffer), "Unknown signal %d", signal) > 0);
+ CHECK_GT(snprintf(buffer, sizeof(buffer), "Unknown signal %d", signal), 0);
return buffer;
}