@@ -410,7 +410,7 @@ bool Esp32Camera::Capture() {
410410 frame_.len = buf.bytesused ;
411411 frame_.data = (uint8_t *)heap_caps_malloc (frame_.len , MALLOC_CAP_SPIRAM | MALLOC_CAP_8BIT);
412412 if (!frame_.data ) {
413- ESP_LOGE (TAG, " alloc frame copy failed: need allocate %d bytes" , buf.bytesused );
413+ ESP_LOGE (TAG, " alloc frame copy failed: need allocate %lu bytes" , buf.bytesused );
414414 if (ioctl (video_fd_, VIDIOC_QBUF, &buf) != 0 ) {
415415 ESP_LOGE (TAG, " Cleanup: VIDIOC_QBUF failed" );
416416 }
@@ -482,7 +482,7 @@ bool Esp32Camera::Capture() {
482482 break ;
483483 }
484484 default :
485- ESP_LOGE (TAG, " unsupported sensor format: 0x%08x " , sensor_format_);
485+ ESP_LOGE (TAG, " unsupported sensor format: 0x%08lx " , sensor_format_);
486486 if (ioctl (video_fd_, VIDIOC_QBUF, &buf) != 0 ) {
487487 ESP_LOGE (TAG, " Cleanup: VIDIOC_QBUF failed" );
488488 }
@@ -524,7 +524,7 @@ bool Esp32Camera::Capture() {
524524 rotate_cfg.in_pixel_fmt = ESP_IMGFX_PIXEL_FMT_RGB888;
525525 break ;
526526 default :
527- ESP_LOGE (TAG, " unsupported sensor format: 0x%08x " , sensor_format_);
527+ ESP_LOGE (TAG, " unsupported sensor format: 0x%08lx " , sensor_format_);
528528 if (ioctl (video_fd_, VIDIOC_QBUF, &buf) != 0 ) {
529529 ESP_LOGE (TAG, " Cleanup: VIDIOC_QBUF failed" );
530530 }
@@ -639,7 +639,7 @@ bool Esp32Camera::Capture() {
639639 break ;
640640 }
641641 default :
642- ESP_LOGE (TAG, " unsupported sensor format for PPA rotation: 0x%08x " , sensor_format_);
642+ ESP_LOGE (TAG, " unsupported sensor format for PPA rotation: 0x%08lx " , sensor_format_);
643643 if (ioctl (video_fd_, VIDIOC_QBUF, &buf) != 0 ) {
644644 ESP_LOGE (TAG, " Cleanup: VIDIOC_QBUF failed" );
645645 }
0 commit comments