summaryrefslogtreecommitdiffstats
path: root/runtime/docs/examples/argv.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/docs/examples/argv.c')
-rw-r--r--runtime/docs/examples/argv.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/docs/examples/argv.c b/runtime/docs/examples/argv.c
index 609ad74f..0acd41e0 100644
--- a/runtime/docs/examples/argv.c
+++ b/runtime/docs/examples/argv.c
@@ -8,6 +8,7 @@ int inst_do_execve (char * filename, char __user *__user *argv, char __user *__u
_stp_copy_argv_from_user (arglist, argv);
foreach (arglist, ptr)
- printk ("%s ", ptr->str);
- printk ("\n");
+ _stp_printf ("%s ", _stp_get_str(ptr));
+ _stp_print("\n");
+
}