centralized printf formats and improved log_displayer performance
Before, log_displayer copied each message into the same structure that
gets put into queues etc so that it could be printed with the same
function. Now, it prints it directly, but using the same formats.
diff --git a/aos/build/queues/objects/queue.rb b/aos/build/queues/objects/queue.rb
index b40ccb2..610bdf7 100644
--- a/aos/build/queues/objects/queue.rb
+++ b/aos/build/queues/objects/queue.rb
@@ -50,7 +50,7 @@
"int16_t" => "%\" PRId16 \"",
"int32_t" => "%\" PRId32 \"",
"int64_t" => "%\" PRId64 \"",
- "::aos::time::Time" => "%010\" PRId32 \".%05\" PRId32 \"s"}
+ "::aos::time::Time" => "\" AOS_TIME_FORMAT \""}
def toPrintFormat()
if(format = PrintFormat[@type])
return format;