if ((banner_end - line_ptr) > 255) {
SCLogDebug("Invalid version string, it should be less than 255 "
"characters including <CR><NL>, input value is %"PRIuMAX,
- (banner_end - line_ptr));
+ (uintmax_t)(banner_end - line_ptr));
SCReturnInt(-1);
}
if (tok + tokLen - (uint8_t *) chunk == (int)len) {
PrintChars(SC_LOG_DEBUG, "LAST CHUNK LINE - CUTOFF",
tok, tokLen);
- SCLogDebug("\nCHUNK CUTOFF CHARS: %d delim %ld\n", tokLen, len - (tok + tokLen - (uint8_t *) chunk));
+ SCLogDebug("\nCHUNK CUTOFF CHARS: %u delim %u\n",
+ tokLen, len - (uint32_t)(tok + tokLen - (uint8_t *) chunk));
} else {
/* Search line for URL */
ret = FindUrlStrings(tok, tokLen, state);