diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-05-03 02:31:15 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-05-03 02:31:15 +0200 |
commit | 88de46052e87ba7b84629163dd4946c9bb24cd22 (patch) | |
tree | 3c9c80434fa75558ec86bd072230b5c92f6d8874 /reader.c | |
parent | 5252a0049e0a509508a8f331222543620db0e6d3 (diff) | |
download | ipecamera-88de46052e87ba7b84629163dd4946c9bb24cd22.tar.gz ipecamera-88de46052e87ba7b84629163dd4946c9bb24cd22.tar.bz2 ipecamera-88de46052e87ba7b84629163dd4946c9bb24cd22.tar.xz ipecamera-88de46052e87ba7b84629163dd4946c9bb24cd22.zip |
Report extra padding only if IPECAMERA_DEBUG_HARDWARE is set
Diffstat (limited to 'reader.c')
-rw-r--r-- | reader.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -110,7 +110,7 @@ static int ipecamera_data_callback(void *user, pcilib_dma_flags_t flags, size_t ipecamera_debug_buffer(RAW_PACKETS, bufsize, NULL, 0, "frame%4lu/frame%9lu.invalid", ctx->event_id, packet_id); if (invalid_frame_id != ctx->event_id) { - pcilib_info("No frame magic in DMA packet of %u bytes, current event %lu", bufsize, ctx->event_id); + ipecamera_debug(HARDWARE, "No frame magic in DMA packet of %u bytes, current event %lu", bufsize, ctx->event_id); invalid_frame_id = ctx->event_id; } @@ -141,7 +141,7 @@ static int ipecamera_data_callback(void *user, pcilib_dma_flags_t flags, size_t ctx->frame[ctx->buffer_pos].event.info.offset = (((uint32_t*)buf)[7] & 0xFFFFFF) * 80; gettimeofday(&ctx->frame[ctx->buffer_pos].event.info.timestamp, NULL); } else { - pcilib_info("Frame magic is not found, ignoring broken data..."); + ipecamera_debug(HARDWARE, "Frame magic is not found, ignoring broken data..."); return PCILIB_STREAMING_CONTINUE; } } |