summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Göttsche2026-02-23 18:52:04 +0100
committerJulien Voisin2026-02-23 21:04:28 +0100
commit9bbb7affb5f23e4d52da0da159229956049e3cfd (patch)
tree026b55f7df664d1be74df8c4d4bbeb200991603c /src
parenta3de1607c792eefa6d994f64d4ceaedcef02e0be (diff)
Simplify formatting
The members sid_min_length and sid_max_length are of type unsigned long, thus use %lu instead of %zu and a cast.
Diffstat (limited to 'src')
-rw-r--r--src/sp_session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp_session.c b/src/sp_session.c
index 568271b..9327549 100644
--- a/src/sp_session.c
+++ b/src/sp_session.c
@@ -27,10 +27,10 @@ static void check_sid_length(const zend_string *sid) {
27 27
28 if (sid) { 28 if (sid) {
29 if (cfg->sid_min_length && ZSTR_LEN(sid) < cfg->sid_min_length) { 29 if (cfg->sid_min_length && ZSTR_LEN(sid) < cfg->sid_min_length) {
30 sp_log_auto("session", cfg->simulation, "Session ID is too short (sid=%zu min=%zu)", ZSTR_LEN(sid), (size_t)cfg->sid_min_length); 30 sp_log_auto("session", cfg->simulation, "Session ID is too short (sid=%zu min=%lu)", ZSTR_LEN(sid), cfg->sid_min_length);
31 } 31 }
32 if (cfg->sid_max_length && ZSTR_LEN(sid) > cfg->sid_max_length) { 32 if (cfg->sid_max_length && ZSTR_LEN(sid) > cfg->sid_max_length) {
33 sp_log_auto("session", cfg->simulation, "Session ID is too long (sid=%zu max=%zu)", ZSTR_LEN(sid), (size_t)cfg->sid_max_length); 33 sp_log_auto("session", cfg->simulation, "Session ID is too long (sid=%zu max=%lu)", ZSTR_LEN(sid), cfg->sid_max_length);
34 } 34 }
35 } 35 }
36} 36}