@@ -8,6 +8,7 @@
*/
#include <trace-seq.h>
#include <stdlib.h>
+#include <stdarg.h>
#include <errno.h>
#include "tracefs.h"
@@ -153,6 +154,16 @@ __hidden void sql_parse_error(struct sqlhist_bison *sb, const char *text,
trace_seq_destroy(&s);
}
+static void parse_error(struct sqlhist_bison *sb, const char *text,
+ const char *fmt, ...)
+{
+ va_list ap;
+
+ va_start(ap, fmt);
+ sql_parse_error(sb, text, fmt, ap);
+ va_end(ap);
+}
+
static inline unsigned int quick_hash(const char *str)
{
unsigned int val = 0;