Remove debug prints

This commit is contained in:
Martijn Braam
2023-07-08 21:08:50 +02:00
parent a01f25f2d7
commit 11f0f1d9b9

View File

@@ -97,20 +97,6 @@ load_entity_ids(libmegapixels_camera *camera)
}
for (int i = 0; i < topology.num_links; i++) {
log_error("Link %d flags", i);
if (links[i].flags & MEDIA_LNK_FL_ENABLED) {
fprintf(stderr, " [enabled]");
}
if (links[i].flags & MEDIA_LNK_FL_IMMUTABLE) {
fprintf(stderr, " [immutable]");
}
if (links[i].flags & MEDIA_LNK_FL_DYNAMIC) {
fprintf(stderr, " [dynamic]");
}
if (links[i].flags & MEDIA_LNK_FL_INTERFACE_LINK) {
fprintf(stderr, " [interface-link]");
}
fprintf(stderr, "\n");
if (links[i].flags & MEDIA_LNK_FL_ENABLED && !(links[i].flags & MEDIA_LNK_FL_IMMUTABLE)) {
uint32_t source_entity, sink_entity;
for (int j = 0; j < topology.num_pads; j++) {
@@ -199,7 +185,6 @@ libmegapixels_select_mode(libmegapixels_camera *camera, libmegapixels_mode *mode
for (int i = 0; i < mode->num_cmds; i++) {
libmegapixels_cmd *cmd = mode->cmds[i];
struct v4l2_subdev_format subdev_fmt = {};
fprintf(stderr, "Do %d\n", cmd->type);
switch (cmd->type) {
case LIBMEGAPIXELS_CMD_LINK:
if (setup_link(camera, cmd->entity_from_id, cmd->entity_to_id, 1) != 0) {