From 7deb974c164d4f7cfbe13c5403d8cd36a0cbc2eb Mon Sep 17 00:00:00 2001 From: jvoisin Date: Wed, 13 Jul 2022 02:10:49 +0200 Subject: Minor micro-optimization --- src/sp_utils.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/sp_utils.c') diff --git a/src/sp_utils.c b/src/sp_utils.c index a8c84f9..57ecf67 100644 --- a/src/sp_utils.c +++ b/src/sp_utils.c @@ -142,7 +142,9 @@ int sp_log_request(const zend_string* restrict folder, const zend_string* restri return -1; } - fprintf(file, "RULE: %s\n", ZSTR_VAL(text_repr)); + fputs("RULE: ", file); + fputs(ZSTR_VAL(text_repr), file); + fputc('\n', file); fprintf(file, "FILE: %s:%d\n", current_filename, current_line); -- cgit v1.3