diff options
| author | jvoisin | 2025-10-02 12:16:29 +0200 |
|---|---|---|
| committer | jvoisin | 2025-10-02 12:16:29 +0200 |
| commit | 09bc3ffc8734cf2437e14ab123c7b732db53b836 (patch) | |
| tree | a7ab04ed2ad5d1848068af8d6e4849ed35153ca4 /src/sp_utils.c | |
| parent | 9509733befcb4010bc77b06fcf41e77078976e80 (diff) | |
Rename a handful of global constants
Diffstat (limited to '')
| -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 64de467..b045f61 100644 --- a/src/sp_utils.c +++ b/src/sp_utils.c | |||
| @@ -44,7 +44,7 @@ void sp_log_msgf(char const* const restrict feature, int level, int type, | |||
| 44 | } | 44 | } |
| 45 | 45 | ||
| 46 | switch (SPCFG(log_media)) { | 46 | switch (SPCFG(log_media)) { |
| 47 | case SP_SYSLOG: { | 47 | case SP_LOG_SYSLOG: { |
| 48 | const char* error_filename = zend_get_executed_filename(); | 48 | const char* error_filename = zend_get_executed_filename(); |
| 49 | int syslog_level = (level == E_ERROR) ? LOG_ERR : LOG_INFO; | 49 | int syslog_level = (level == E_ERROR) ? LOG_ERR : LOG_INFO; |
| 50 | int error_lineno = zend_get_executed_lineno(TSRMLS_C); | 50 | int error_lineno = zend_get_executed_lineno(TSRMLS_C); |
| @@ -58,7 +58,7 @@ void sp_log_msgf(char const* const restrict feature, int level, int type, | |||
| 58 | } | 58 | } |
| 59 | break; | 59 | break; |
| 60 | } | 60 | } |
| 61 | case SP_ZEND: | 61 | case SP_LOG_ZEND: |
| 62 | default: | 62 | default: |
| 63 | zend_error(level, "[snuffleupagus][%s][%s][%s] %s", client_ip, feature, | 63 | zend_error(level, "[snuffleupagus][%s][%s][%s] %s", client_ip, feature, |
| 64 | logtype, msg); | 64 | logtype, msg); |
