#pragma once #include #include #include // Send a log message through system log queue // Args are the same as printf() // System time and thread number are prepended and a new line is appended // to the message automatically. // Extra whitespace in the end of the string is removed. // This function waits for a maximum of 10 milliseconds. void LOG(const char *format, ...) __attribute__((format (printf, 1, 2)));