summaryrefslogtreecommitdiff
path: root/libcuda/cuobjdump.l
diff options
context:
space:
mode:
authorMahmoud <[email protected]>2018-10-16 17:26:34 -0400
committerMahmoud <[email protected]>2018-10-16 17:26:34 -0400
commit7375668786abfa5b0592fca0ce97fb5a8ba512d4 (patch)
tree4abf17acab64630f3a099d82e0cd8250c54d7b5f /libcuda/cuobjdump.l
parent802bc9f840aac536330ad93a1cbc2f04ead75106 (diff)
parentb8db00c3d8cfddb37a96b9cf2f308a67db4d319d (diff)
Merge branch 'dev-purdue-integration' into dev
Diffstat (limited to 'libcuda/cuobjdump.l')
-rw-r--r--libcuda/cuobjdump.l7
1 files changed, 2 insertions, 5 deletions
diff --git a/libcuda/cuobjdump.l b/libcuda/cuobjdump.l
index f63ee73..2b0dac8 100644
--- a/libcuda/cuobjdump.l
+++ b/libcuda/cuobjdump.l
@@ -143,7 +143,6 @@ newlines {newline}+
/* Looking for the identifier (filename) then the header is done */
- /* <endheader>[[:alnum:]_\./]+ yylval.string_value = strdup(yytext); yy_pop_state(); return FILENAME; */
<endheader>{notnewline}+ yylval.string_value = strdup(yytext); yy_pop_state(); return IDENTIFIER;
@@ -159,8 +158,6 @@ newlines {newline}+
%%
void cuobjdump_error(const char* message)
{
- printf(" "); printf(message); printf(" near \""); printf(yytext); printf("\"");
- printf(" on line ");
- char line[5]; sprintf(line, "%i", yylineno); printf(line);
- printf("\n");
+ printf(" %s near \"%s\"",message, yytext);
+ printf(" on line %i\n",yylineno);
}