improvement code

This commit is contained in:
lxsang 2021-01-02 20:10:46 +01:00
parent 3c1514b794
commit 5d551d8a23
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -230,7 +230,7 @@ int cam_grab_frame(cam_setting_t *opts)
M_ERROR(MODULE_NAME, "Unable to write frame to file: %s", strerror(errno)); M_ERROR(MODULE_NAME, "Unable to write frame to file: %s", strerror(errno));
} }
close(file); close(file);
M_LOG(MODULE_NAME, "written %d bytes to file", size); M_LOG(MODULE_NAME, "written %d bytes to file", (int)size);
} }
free(jpeg_frame); free(jpeg_frame);
@ -644,7 +644,7 @@ int main(const int argc, const char **argv)
} }
else if (expirations_count > 1u) else if (expirations_count > 1u)
{ {
M_ERROR(MODULE_NAME, "LOOP OVERFLOW COUNT: %llu", expirations_count); M_ERROR(MODULE_NAME, "LOOP OVERFLOW COUNT: %lu", (long unsigned int)expirations_count);
} }
} }
} }