From: Dmitry V. Levin Date: Wed, 29 Jul 2015 21:32:35 +0000 (+0000) Subject: mips: fix stub files X-Git-Tag: v4.11~318 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0e4b1f2eb31a15a6aa7177e0281785a05779bf44;p=strace mips: fix stub files This complements commit 140ecf876686d49085c6eb3a2306e2ea6ea641bc. * linux/mips/genstub.sh: Output SEN(printargs) instead of printargs. Reported-by: Elliott Hughes --- diff --git a/linux/mips/genstub.sh b/linux/mips/genstub.sh index ffcbfdf5..5ebb1d44 100755 --- a/linux/mips/genstub.sh +++ b/linux/mips/genstub.sh @@ -6,5 +6,5 @@ dstdir="$1"; shift for n in n32 n64 o32; do in="$srcdir/syscallent-$n.h" out="$dstdir/syscallent-$n-stub.h" - sed -n '/^#if/,/^#else/ {s/^\([^{]*{[^,]*,[^,]*,[[:space:]]*\)[^,[:space:]]\+,[[:space:]]*"\([^"]\+".*\)/\1printargs, "'$n'_\2/; s/^\[.*/&/p}' < "$in" > "$out" + sed -n '/^#if/,/^#else/ {s/^\([^{]*{[^,]*,[^,]*,[[:space:]]*\)[^,[:space:]]\+,[[:space:]]*"\([^"]\+".*\)/\1SEN(printargs), "'$n'_\2/; s/^\[.*/&/p}' < "$in" > "$out" done