Skip to content

Commit

Permalink
Trivial speed optimization
Browse files Browse the repository at this point in the history
* strace.c (tprints): Use fputs_unlocked instead of fputs.

Signed-off-by: Denys Vlasenko <[email protected]>
  • Loading branch information
Denys Vlasenko committed Apr 16, 2012
1 parent c933f27 commit 142aee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion strace.c
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ void
tprints(const char *str)
{
if (current_tcp) {
int n = fputs(str, current_tcp->outf);
int n = fputs_unlocked(str, current_tcp->outf);
if (n >= 0) {
current_tcp->curcol += strlen(str);
return;
Expand Down

0 comments on commit 142aee0

Please sign in to comment.