X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=src%2Fplugins%2Fctf%2Fcommon%2Fmetadata%2Flexer.l;h=849d016bc820364b690ec1831a3c906848525489;hp=43c81b88d5293ea0b9711421615030446b721450;hb=50f6fce8d00bc6b70a814a0be3b71570fb65d070;hpb=49a43e69c6ca442956f894029d0d8e2acae8b041 diff --git a/src/plugins/ctf/common/metadata/lexer.l b/src/plugins/ctf/common/metadata/lexer.l index 43c81b88..849d016b 100644 --- a/src/plugins/ctf/common/metadata/lexer.l +++ b/src/plugins/ctf/common/metadata/lexer.l @@ -24,7 +24,7 @@ errno = 0; \ yylval->ull = strtoull(yytext, NULL, base); \ if (errno) { \ - _BT_LOGE_LINENO(yylineno, \ + _BT_LOGE_APPEND_CAUSE_LINENO(yylineno, \ "Cannot parser constant integer: " \ "base=%d, text=\"%s\"", base, yytext); \ return CTF_ERROR; \ @@ -116,5 +116,5 @@ _Imaginary setstring(yyextra, yylval, yytext); return CTF_IMAGINARY; {IDENTIFIER} BT_LOGT("Got identifier: id=\"%s\"", yytext); setstring(yyextra, yylval, yytext); if (is_type(yyextra, yytext)) return ID_TYPE; else return IDENTIFIER; [ \t\r\n] ; /* ignore */ -. _BT_LOGE_LINENO(yylineno, "Invalid character: char=\"%c\", val=0x%02x", isprint((unsigned char) yytext[0]) ? yytext[0] : '\0', yytext[0]); return CTF_ERROR; +. _BT_LOGE_APPEND_CAUSE_LINENO(yylineno, "Invalid character: char=\"%c\", val=0x%02x", isprint((unsigned char) yytext[0]) ? yytext[0] : '\0', yytext[0]); return CTF_ERROR; %%