From: Adam Dickmeiss Date: Wed, 13 Mar 2013 13:00:42 +0000 (+0100) Subject: Pass integer for yaz_log %u X-Git-Tag: v1.6.28~9 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=6e85147316891403f371a59b611310ec2d03e889;p=pazpar2-moved-to-github.git Pass integer for yaz_log %u Not a string --- diff --git a/src/session.c b/src/session.c index 65caa7c..4603f2d 100644 --- a/src/session.c +++ b/src/session.c @@ -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); }