From: Elvira Khabirova Date: Mon, 29 Aug 2016 13:22:47 +0000 (+0000) Subject: mpers.awk: relax union member name absence check X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=27a1a3f3eb644066cdae4f7004c56953da1ca83d;p=strace mpers.awk: relax union member name absence check This fixes mpersing of unions containing nameless members, e.g. struct btrfs_ioctl_vol_args_v2. * mpers.awk (what_is): Print names of union_type members as is. --- diff --git a/mpers.awk b/mpers.awk index 809acf88..2283b966 100644 --- a/mpers.awk +++ b/mpers.awk @@ -146,7 +146,7 @@ function what_is(what_idx, type_idx, special, item, \ if ("parent" in array[item] && \ array_get(item, "parent") == what_idx) { returned = what_is(item) - printf("%s", array_get(item, "name")) + printf("%s", array[item]["name"]) if ("" != returned) { printf("[%s]", returned) }