Pass integer for yaz_log %u
[pazpar2-moved-to-github.git] / src / session.c
index 65caa7c..4603f2d 100644 (file)
@@ -2155,7 +2155,7 @@ void session_log(struct session *s, int level, const char *fmt, ...)
     va_start(ap, fmt);
 
     yaz_vsnprintf(buf, sizeof(buf)-30, fmt, ap);
-    yaz_log(level, "Session %u: %s", s ? s->session_id : "-", buf);
+    yaz_log(level, "Session %u: %s", s ? s->session_id : 0, buf);
 
     va_end(ap);
 }