cleaned up lots of not-so-niceties and a few bugs
I built everything with clang (hackishly in some areas) and it spit out a bunch
of warnings.
diff --git a/aos/common/macros.h b/aos/common/macros.h
index ba23fe4..a2a7891 100644
--- a/aos/common/macros.h
+++ b/aos/common/macros.h
@@ -25,4 +25,12 @@
#define STRINGIFY(x) TO_STRING(x)
#define TO_STRING(x) #x
+#ifdef __VXWORKS__
+// We're using ancient glibc, so sticking to just what the syscall can handle is
+// probably safer.
+#define GOOD_PRINTF_FORMAT_TYPE printf
+#else
+#define GOOD_PRINTF_FORMAT_TYPE gnu_printf
+#endif
+
#endif // _AOS_COMMON_MACROS_H_