Merge "configure tcmalloc nicely"
diff --git a/aos/common/logging/logging_printf_formats.h b/aos/common/logging/logging_printf_formats.h
index 0bf253c..f7ab7bd 100644
--- a/aos/common/logging/logging_printf_formats.h
+++ b/aos/common/logging/logging_printf_formats.h
@@ -10,7 +10,7 @@
// logging_impl.cc.
#define AOS_TIME_FORMAT \
- "%010" PRId32 ".%0" STRINGIFY(AOS_TIME_NSECONDS_DIGITS) PRId32 "s"
+ "%010" PRId32 ".%-" STRINGIFY(AOS_TIME_NSECONDS_DIGITS) PRId32 "s"
#define AOS_TIME_ARGS(sec, nsec) \
sec, (nsec + (AOS_TIME_NSECONDS_DENOMINATOR / 2)) / \
AOS_TIME_NSECONDS_DENOMINATOR
diff --git a/frc971/wpilib/joystick_sender.cc b/frc971/wpilib/joystick_sender.cc
index d2a687b..364929a 100644
--- a/frc971/wpilib/joystick_sender.cc
+++ b/frc971/wpilib/joystick_sender.cc
@@ -12,9 +12,11 @@
void JoystickSender::operator()() {
DriverStation *ds = DriverStation::GetInstance();
- ::aos::SetCurrentThreadRealtimePriority(29);
+ ::aos::SetCurrentThreadName("DSReader");
uint16_t team_id = ::aos::network::GetTeamNumber();
+ ::aos::SetCurrentThreadRealtimePriority(29);
+
while (run_) {
ds->WaitForData();
auto new_state = ::aos::robot_state.MakeMessage();