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/y2019/jevois/serial.cc b/y2019/jevois/serial.cc
index 7c49b4f..5febbb4 100644
--- a/y2019/jevois/serial.cc
+++ b/y2019/jevois/serial.cc
@@ -14,11 +14,12 @@
int open_via_terminos(const char *tty_name) {
int itsDev = ::open(tty_name, O_RDWR | O_NOCTTY | O_NONBLOCK);
if (itsDev == -1) {
- LOG(FATAL, "problem opening: %s\n", tty_name);
+ AOS_LOG(FATAL, "problem opening: %s\n", tty_name);
}
termios options = {};
- if (tcgetattr(itsDev, &options) == -1) LOG(FATAL, "Failed to get options");
+ if (tcgetattr(itsDev, &options) == -1)
+ AOS_LOG(FATAL, "Failed to get options");
// get raw input from the port
options.c_cflag |= (CLOCAL // ignore modem control lines
@@ -70,7 +71,7 @@
// options.c_cflag |= CRTSCTS;
if (tcsetattr(itsDev, TCSANOW, &options) == -1)
- LOG(FATAL, "Failed to set port options");
+ AOS_LOG(FATAL, "Failed to set port options");
return itsDev;
}