}
buf[rdsize - 1] = '\0';
+ int sc;
+ unsigned long arg1, arg2, arg3, arg4, arg5, arg6, sp, pc;
+ if (sscanf(buf, "%d %lx %lx %lx %lx %lx %lx %lx %lx", &sc, &arg1, &arg2, &arg3, &arg4, &arg5, &arg6, &sp, &pc) != 9) {
+ return;
+ }
+
LOG_W
- ("Contents of /proc/%d/syscall (the syscall number goes first, arguments follow): '%s'",
- si->si_pid, buf);
+ ("Syscall number: %d, Arguments: %lx, %lx, %lx, %lx, %lx, %lx, SP: %lx, PC: %lx", sc, arg1, arg2, arg3, arg4, arg5, arg6, sp, pc);
}
int subprocReap(struct nsjconf_t *nsjconf)