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/control_loops/drivetrain/replay_localizer.cc b/y2019/control_loops/drivetrain/replay_localizer.cc
index ce0ac09..93282c8 100644
--- a/y2019/control_loops/drivetrain/replay_localizer.cc
+++ b/y2019/control_loops/drivetrain/replay_localizer.cc
@@ -139,7 +139,7 @@
replayer_.AddHandler<frc971::control_loops::drivetrain::LocalizerControl>(
drivetrain, "localizer_control",
[this](const frc971::control_loops::drivetrain::LocalizerControl &msg) {
- LOG_STRUCT(DEBUG, "localizer_control", msg);
+ AOS_LOG_STRUCT(DEBUG, "localizer_control", msg);
localizer_.ResetPosition(msg.sent_time, msg.x, msg.y, msg.theta,
msg.theta_uncertainty,
!msg.keep_current_theta);
@@ -186,7 +186,7 @@
fd = open(filename, O_RDONLY);
}
if (fd == -1) {
- PLOG(FATAL, "couldn't open file '%s' for reading", filename);
+ AOS_PLOG(FATAL, "couldn't open file '%s' for reading", filename);
}
replayer_.OpenFile(fd);
@@ -204,7 +204,7 @@
}
replayer_.CloseCurrentFile();
- PCHECK(close(fd));
+ AOS_PCHECK(close(fd));
Plot();
}