summaryrefslogtreecommitdiff
path: root/src/sp_ini.c
diff options
context:
space:
mode:
authorChristian Göttsche2024-06-06 16:36:40 +0200
committerjvoisin2024-06-06 16:36:40 +0200
commit849252c6a48b428dde3ad8930b40a2bdf9874cb7 (patch)
tree0fdc4d1e65c0f4fb4f670b95390c41be808b1ad1 /src/sp_ini.c
parent381aa67af284e421ce6554e7bf6039dda5e674b9 (diff)
Add format attribute to log function and adjust format specifiers
Annotate the common logging function sp_log_msgf() with the format attribute so compilers can check the used format string and passed arguments for discrepancies. Adjust the lineno printing by using %zu and the type size_t consistently.
Diffstat (limited to 'src/sp_ini.c')
-rw-r--r--src/sp_ini.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sp_ini.c b/src/sp_ini.c
index 8860a92..cfbc615 100644
--- a/src/sp_ini.c
+++ b/src/sp_ini.c
@@ -97,7 +97,7 @@ static bool /* success */ sp_ini_check(zend_string *const restrict varname, zend
97 if (entry->msg) { 97 if (entry->msg) {
98 sp_log_ini_check_violation("%s", ZSTR_VAL(entry->msg)); 98 sp_log_ini_check_violation("%s", ZSTR_VAL(entry->msg));
99 } else { 99 } else {
100 sp_log_ini_check_violation("INI value %lld for `%s` out of range", lvalue, ZSTR_VAL(entry->key)); 100 sp_log_ini_check_violation("INI value " ZEND_LONG_FMT " for `%s` out of range", lvalue, ZSTR_VAL(entry->key));
101 } 101 }
102 return simulation; 102 return simulation;
103 } 103 }