Skip to content

Commit

Permalink
add stderr in fprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
planrich committed Apr 26, 2017
1 parent b004d12 commit 8569d4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/vmp_stack.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ int vmp_walk_and_record_stack(PY_STACK_FRAME_T *frame, void ** result,
while (signal < 0) {
int err = unw_step(&cursor);
if (err <= 0) {
fprintf("WARNING: did not find signal frame, skipping sample\n");
fprintf(stderr, "WARNING: did not find signal frame, skipping sample\n");
return 0;
}
signal++;
Expand All @@ -244,7 +244,7 @@ int vmp_walk_and_record_stack(PY_STACK_FRAME_T *frame, void ** result,
}
int err = unw_step(&cursor);
if (err <= 0) {
fprintf("WARNING: did not find signal frame, skipping sample\n");
fprintf(stderr,"WARNING: did not find signal frame, skipping sample\n");
return 0;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/vmprof_main.h
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ static void sigprof_handler(int sig_nr, siginfo_t* info, void *ucontext)
if (commit) {
commit_buffer(fd, p);
} else {
fprintf("WARNING: canceled buffer, no stack trace was written\n");
fprintf(stderr, "WARNING: canceled buffer, no stack trace was written\n");
cancel_buffer(p);
}
}
Expand Down

0 comments on commit 8569d4b

Please sign in to comment.