Skip to content

Commit

Permalink
fix typo of cmdtools
Browse files Browse the repository at this point in the history
  • Loading branch information
flabby committed May 22, 2015
1 parent f154b52 commit 200e18f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions cmdtool/trace_status.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ void process_opt_s(pt_context_t *ctx)

/*dump stauts from the extension*/
if (!ctx->addr_info.sapi_globals_addr && check_phpext_installed(ctx)) {
log_printf(LL_DEBUG, "pt extension has been installed, use extension\n");
log_printf(LL_DEBUG, "phptrace extension has been installed, use extension\n");
if (pt_ctrl_open(&(ctx->ctrl), PHPTRACE_LOG_DIR "/" PT_CTRL_FILENAME) < 0) {
error_msg(ctx, ERR_CTRL, "cannot open control mmap file %s (%s)",
PHPTRACE_LOG_DIR "/" PT_CTRL_FILENAME, (errno ? strerror(errno) : "null"));
Expand All @@ -334,7 +334,7 @@ void process_opt_s(pt_context_t *ctx)
}

/*dump status without extension if above failed*/
log_printf(LL_DEBUG, "pt extension was not been installed, use ptrace\n");
log_printf(LL_DEBUG, "phptrace extension was not been installed, use ptrace\n");
if (sys_trace_attach(ctx->php_pid)) {
log_printf(LL_NOTICE, "sys_trace_attach failed");
error_msg(ctx, ERR_STACK, "sys_trace_attach failed (%s)", (errno ? strerror(errno) : "null"));
Expand Down
8 changes: 4 additions & 4 deletions cmdtool/trace_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ void process_opt_e(pt_context_t *ctx)

void usage()
{
printf ("usage: pt [-chlsnvvvvw] [-p pid] [--cleanup]\n\
or: pt [-chlnvvvvw] [-r infile]\n\
printf ("usage: phptrace [-chlsnvvvvw] [-p pid] [--cleanup]\n\
or: phptrace [-chlnvvvvw] [-r infile]\n\
-h -- show this help\n\
--cleanup -- cleanup the trace switches of pid, or all the switches if no pid parameter\n\
-p pid -- access the php process pid\n\
Expand All @@ -216,8 +216,8 @@ void usage()
-n function-count -- specify the total function number to trace or count, there is no limit by default\n\
-l size -- specify the max string length to print\n\
-v -- print verbose information\n\
-w outfile -- write the trace data to file in pt format\n\
-r infile -- read the trace file of pt format, instead of the process\n\
-w outfile -- write the trace data to file in trace format\n\
-r infile -- read the trace file of trace format, instead of the process\n\
-o outfile -- write the trace data to file in specified format\n\
--format format -- specify the format when -o option is set. Legal values is json for now\n");
}
Expand Down

0 comments on commit 200e18f

Please sign in to comment.