From: Victor Julien Date: Mon, 9 Dec 2013 19:57:02 +0000 (+0100) Subject: Use %u for unsigned int in (console) output X-Git-Tag: suricata-2.0beta2~48 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=35298a01463bae55f1b0de1f464db322f360058d;p=thirdparty%2Fsuricata.git Use %u for unsigned int in (console) output --- diff --git a/src/util-debug.c b/src/util-debug.c index ef05fafafd..4da2cc3d4c 100644 --- a/src/util-debug.c +++ b/src/util-debug.c @@ -404,7 +404,7 @@ SCError SCLogMessage(SCLogLevel log_level, char **msg, const char *file, case SC_LOG_FMT_LINE: temp_fmt[0] = '\0'; cw = snprintf(temp, SC_LOG_MAX_LOG_MSG_LEN - (temp - *msg), - "%s%d", substr, line); + "%s%u", substr, line); if (cw < 0) goto error; temp += cw;