commit | 142aee0a593ea9b42aa98347d998176b8a4e2489 | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <vda.linux@googlemail.com> | Mon Apr 16 18:10:15 2012 +0200 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Mon Apr 16 18:10:15 2012 +0200 |
tree | 6d4029558c05cbe35f4e5a1e50cd90ab84d3880b | |
parent | c933f27a3a932bbe9921a1d94b45e4db94b21a5f [diff] |
Trivial speed optimization * strace.c (tprints): Use fputs_unlocked instead of fputs. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/strace.c b/strace.c index 1097b0c..34690fc 100644 --- a/strace.c +++ b/strace.c
@@ -527,7 +527,7 @@ 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;