We cannot simply use print_xlat as PR_SET_PTRACER_ANY is defined
differently in kernel headers.
* prctl.c (SYS_FUNC(prctl)) <case PR_SET_PTRACER>: Use print_xlat_ex
for printing PR_SET_PTRACER_ANY named constant.
case PR_SET_PTRACER:
tprints(", ");
- if ((int) arg2 == -1)
- tprints("PR_SET_PTRACER_ANY");
- else
+ if ((int) arg2 == -1) {
+ print_xlat_ex(arg2, "PR_SET_PTRACER_ANY",
+ XLAT_STYLE_DEFAULT);
+ } else {
tprintf("%" PRI_klu, arg2);
+ }
return RVAL_DECODED;
case PR_SET_SECCOMP: