]> granicus.if.org Git - strace/commitdiff
2005-07-22 James Lentini <jlentini@gmail.com>
authorRoland McGrath <roland@redhat.com>
Wed, 3 Aug 2005 11:27:30 +0000 (11:27 +0000)
committerRoland McGrath <roland@redhat.com>
Wed, 3 Aug 2005 11:27:30 +0000 (11:27 +0000)
* bjm.c (sys_init_module): Display all three arguments.
* linux/syscallent.h: Update argument count.

bjm.c
linux/syscallent.h

diff --git a/bjm.c b/bjm.c
index 68a218556fbe2dd692eb1cb82e619f53d93af6da..5947a4192d7b66d990df83dfed8078c7663f5775 100644 (file)
--- a/bjm.c
+++ b/bjm.c
@@ -197,8 +197,9 @@ sys_init_module(tcp)
 struct tcb *tcp;
 {
        if (entering(tcp)) {
-               printpath(tcp, tcp->u_arg[0]);
-               tprintf(", %#lx", tcp->u_arg[1]);
+               tprintf("%#lx, ", tcp->u_arg[0]);
+               tprintf("%lu, ", tcp->u_arg[1]);
+               printstr(tcp, tcp->u_arg[2], -1);
        }
        return 0;
 }
index 8ce66ba71300e5e381095dc9eb540dd83669f10f..6c3332c9119c394775021abd6f7bf86b4d2fbf04 100644 (file)
        { 3,    0,      sys_mprotect,           "mprotect"      }, /* 125 */
        { 3,    TS,     sys_sigprocmask,        "sigprocmask"   }, /* 126 */
        { 2,    0,      sys_create_module,      "create_module" }, /* 127 */
-       { 2,    0,      sys_init_module,        "init_module"   }, /* 128 */
+       { 3,    0,      sys_init_module,        "init_module"   }, /* 128 */
        { 1,    0,      sys_delete_module,      "delete_module" }, /* 129 */
        { 1,    0,      sys_get_kernel_syms,    "get_kernel_syms"}, /* 130 */
        { 4,    0,      sys_quotactl,           "quotactl"      }, /* 131 */