From 6e85147316891403f371a59b611310ec2d03e889 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 13 Mar 2013 14:00:42 +0100 Subject: [PATCH] Pass integer for yaz_log %u Not a string --- src/session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 1.7.10.4