patch-process_c 953 B

1234567891011121314151617181920212223242526272829
  1. --- strace-4.8.orig/process.c 2013-05-18 00:22:19.000000000 +0200
  2. +++ strace-4.8/process.c 2014-01-15 12:21:31.000000000 +0100
  3. @@ -2857,7 +2844,7 @@ sys_sched_setscheduler(struct tcb *tcp)
  4. if (umove(tcp, tcp->u_arg[2], &p) < 0)
  5. tprintf(", %#lx", tcp->u_arg[2]);
  6. else
  7. - tprintf(", { %d }", p.__sched_priority);
  8. + tprintf(", { %d }", p.sched_priority);
  9. }
  10. return 0;
  11. }
  12. @@ -2872,7 +2859,7 @@ sys_sched_getparam(struct tcb *tcp)
  13. if (umove(tcp, tcp->u_arg[1], &p) < 0)
  14. tprintf("%#lx", tcp->u_arg[1]);
  15. else
  16. - tprintf("{ %d }", p.__sched_priority);
  17. + tprintf("{ %d }", p.sched_priority);
  18. }
  19. return 0;
  20. }
  21. @@ -2885,7 +2872,7 @@ sys_sched_setparam(struct tcb *tcp)
  22. if (umove(tcp, tcp->u_arg[1], &p) < 0)
  23. tprintf("%d, %#lx", (int) tcp->u_arg[0], tcp->u_arg[1]);
  24. else
  25. - tprintf("%d, { %d }", (int) tcp->u_arg[0], p.__sched_priority);
  26. + tprintf("%d, { %d }", (int) tcp->u_arg[0], p.sched_priority);
  27. }
  28. return 0;
  29. }