debug: fix compiler warnings

pull/2115/head
Victor Julien 10 years ago
parent 7dfdcdc770
commit 48771c1acf

@ -85,7 +85,7 @@ static int SSHParseBanner(SshState *state, SshHeader *header, const uint8_t *inp
if ((banner_end - line_ptr) > 255) { if ((banner_end - line_ptr) > 255) {
SCLogDebug("Invalid version string, it should be less than 255 " SCLogDebug("Invalid version string, it should be less than 255 "
"characters including <CR><NL>, input value is %"PRIuMAX, "characters including <CR><NL>, input value is %"PRIuMAX,
(banner_end - line_ptr)); (uintmax_t)(banner_end - line_ptr));
SCReturnInt(-1); SCReturnInt(-1);
} }

@ -1150,7 +1150,8 @@ static int ProcessDecodedDataChunk(const uint8_t *chunk, uint32_t len,
if (tok + tokLen - (uint8_t *) chunk == (int)len) { if (tok + tokLen - (uint8_t *) chunk == (int)len) {
PrintChars(SC_LOG_DEBUG, "LAST CHUNK LINE - CUTOFF", PrintChars(SC_LOG_DEBUG, "LAST CHUNK LINE - CUTOFF",
tok, tokLen); 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 { } else {
/* Search line for URL */ /* Search line for URL */
ret = FindUrlStrings(tok, tokLen, state); ret = FindUrlStrings(tok, tokLen, state);

Loading…
Cancel
Save