if (data->flags & DETECT_BYTEJUMP_STRING) {
extbytes = ByteExtractStringUint64(&val, data->base,
data->nbytes, (const char *)ptr);
- if(extbytes <= 0) {
- SCLogError(SC_ERR_BYTE_EXTRACT_FAILED,"Error extracting %d bytes "
- "of string data: %d", data->nbytes, extbytes);
+ if (extbytes <= 0) {
+ SCLogDebug("error extracting %d bytes of string data: %d",
+ data->nbytes, extbytes);
return -1;
}
}
int endianness = (data->flags & DETECT_BYTEJUMP_LITTLE) ? BYTE_LITTLE_ENDIAN : BYTE_BIG_ENDIAN;
extbytes = ByteExtractUint64(&val, endianness, data->nbytes, ptr);
if (extbytes != data->nbytes) {
- SCLogError(SC_ERR_BYTE_EXTRACT_FAILED,"Error extracting %d bytes "
- "of numeric data: %d", data->nbytes, extbytes);
+ SCLogDebug("error extracting %d bytes of numeric data: %d",
+ data->nbytes, extbytes);
return -1;
}
}