return time_msecs - frsh_trace_init_timemsec;
}
-static void inline FRSH_TRACE(bool is_active, const char *format, ...)
-{
- va_list args;
-
-#ifdef FRSH_TRACE_TS_MSECS
- const int TS_LENGTH_MSECS = 10; /* Room for LONG_MAX 2147483648 */
-#endif
-
- if (is_active) {
-
- va_start(args, format);
-#ifdef FRSH_TRACE_TS_MSECS
- printf("%*ld: ", TS_LENGTH_MSECS, FRSH_GET_TIMESTAMP_MSECS());
-#endif
- vprintf(format, args);
- va_end(args);
- }
-}
+/**
+ * FRSH_TRACE()
+ *
+ * If the boolean value is true, print the format line optionally
+ * preceded by a timestamp in ms relative to the start of the
+ * program.
+ *
+ * Due to the "..." argument passing, this function cannot be
+ * inlined.
+ **/
+void FRSH_TRACE(bool is_active, const char *format, ...);
#endif