diff options
| author | jvoisin | 2020-07-04 17:58:13 +0200 |
|---|---|---|
| committer | jvoisin | 2020-07-04 17:58:13 +0200 |
| commit | 55087da4701ddfbf4728b3670d8e46c07b4df881 (patch) | |
| tree | 4b4fc4ab0352d38ac98ea7af588d758f2e308f2a /src/sp_utils.c | |
| parent | 08f21d8b878b6c1490e6d6bb3d44aa640a88e9ca (diff) | |
Run clang-format on the codebase
Diffstat (limited to 'src/sp_utils.c')
| -rw-r--r-- | src/sp_utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp_utils.c b/src/sp_utils.c index 1bd37fe..2665c28 100644 --- a/src/sp_utils.c +++ b/src/sp_utils.c | |||
| @@ -37,8 +37,8 @@ void sp_log_msg(char const* feature, int type, const char* fmt, ...) { | |||
| 37 | const char* error_filename = zend_get_executed_filename(); | 37 | const char* error_filename = zend_get_executed_filename(); |
| 38 | int syslog_level = (type == SP_LOG_DROP) ? LOG_ERR : LOG_INFO; | 38 | int syslog_level = (type == SP_LOG_DROP) ? LOG_ERR : LOG_INFO; |
| 39 | int error_lineno = zend_get_executed_lineno(TSRMLS_C); | 39 | int error_lineno = zend_get_executed_lineno(TSRMLS_C); |
| 40 | syslog(syslog_level, "[snuffleupagus][%s][%s] %s in %s on line %d", client_ip, feature, msg, | 40 | syslog(syslog_level, "[snuffleupagus][%s][%s] %s in %s on line %d", |
| 41 | error_filename, error_lineno); | 41 | client_ip, feature, msg, error_filename, error_lineno); |
| 42 | closelog(); | 42 | closelog(); |
| 43 | if (type == SP_LOG_DROP) { | 43 | if (type == SP_LOG_DROP) { |
| 44 | zend_bailout(); | 44 | zend_bailout(); |
