trace: Fix 'char **' compilation error in simple backend
commitdb4df20de86c6e8ecd6c9f042c029ffb9f9cddac
authorFam Zheng <famz@redhat.com>
Wed, 26 Oct 2016 03:50:06 +0000 (26 11:50 +0800)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 27 Oct 2016 18:24:15 +0000 (27 19:24 +0100)
treed29b9a49b1fbbb98167e7539519ab382f3f7136b
parent835f3d24b42fcbeca5c49048994a4e5d0fe905c5
trace: Fix 'char **' compilation error in simple backend

Currently, the generated function body will do "strlen(arg)" but the
argument could be 'char **' or 'char * const *'. Avoid that by excluding
such cases in is_string check.

Reported by patchew's "make docker-test-mingw@fedora".

Suggested-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 1477453806-21097-1-git-send-email-famz@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
scripts/tracetool/backend/simple.py