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/y2016/vision/target_receiver.cc b/y2016/vision/target_receiver.cc
index a496848..a66be59 100644
--- a/y2016/vision/target_receiver.cc
+++ b/y2016/vision/target_receiver.cc
@@ -304,8 +304,8 @@
".y2016.vision.vision_status");
StereoGeometry stereo(constants::GetValues().vision_name);
- LOG(INFO, "calibration: %s\n",
- stereo.calibration().ShortDebugString().c_str());
+ AOS_LOG(INFO, "calibration: %s\n",
+ stereo.calibration().ShortDebugString().c_str());
DrivetrainOffsetCalculator drivetrain_offset(&event_loop);
@@ -328,7 +328,7 @@
right.Received(target, now);
}
} else {
- LOG(ERROR, "oh noes: parse error\n");
+ AOS_LOG(ERROR, "oh noes: parse error\n");
continue;
}
@@ -404,20 +404,22 @@
}
if (drivetrain_offset.CompleteVisionStatus(new_vision_status.get())) {
- LOG_STRUCT(DEBUG, "vision", *new_vision_status);
+ AOS_LOG_STRUCT(DEBUG, "vision", *new_vision_status);
if (!new_vision_status.Send()) {
- LOG(ERROR, "Failed to send vision information\n");
+ AOS_LOG(ERROR, "Failed to send vision information\n");
}
} else {
- LOG_STRUCT(WARNING, "vision without drivetrain", *new_vision_status);
+ AOS_LOG_STRUCT(WARNING, "vision without drivetrain",
+ *new_vision_status);
}
}
if (target.camera_index() == 0) {
- LOG(DEBUG, "left_target: %s\n", left.target().ShortDebugString().c_str());
+ AOS_LOG(DEBUG, "left_target: %s\n",
+ left.target().ShortDebugString().c_str());
} else {
- LOG(DEBUG, "right_target: %s\n",
- right.target().ShortDebugString().c_str());
+ AOS_LOG(DEBUG, "right_target: %s\n",
+ right.target().ShortDebugString().c_str());
}
}
}