]> sourceware.org Git - systemtap.git/commit
Fix PR17292 parse error of string auto-concatenation in printf statement.
authorHushan Jia <hushan@smartx.com>
Mon, 22 Dec 2014 15:08:20 +0000 (09:08 -0600)
committerDavid Smith <dsmith@redhat.com>
Mon, 22 Dec 2014 15:08:20 +0000 (09:08 -0600)
commit45ce4be77b187ee97890b175dcfc6b415f4357e2
tree6701c09cbd7c3b6735ebe0f81662e869ccf6d838
parente6f437adfe6d0f48562ce3204c0fa4dd184b43c9
Fix PR17292 parse error of string auto-concatenation in printf statement.

Use multi part string concatenation as the format string of printf
statement will cuase following parse error:

$ /usr/bin/stap -p1 testsuite/parseok/strconcat.stp
parse error: expected ','
        saw: string 'bar' at testsuite/parseok/strconcat.stp:6:19
     source:     printf("foo " "bar" "\n")
                               ^

1 parse error.
Pass 1: parse failed.  [man error::pass1]

This fix is suggested by fche.
parse.cxx
testsuite/parseok/strconcat.stp [new file with mode: 0644]
This page took 0.028291 seconds and 5 git commands to generate.