Commit 25b188fc authored by Mikhail Karpenko's avatar Mikhail Karpenko

Remove debug code

parent c3464960
......@@ -814,9 +814,6 @@ void camogm_set_prefix(camogm_state *state, const char * p, path_type type)
} else {
D0(fprintf(debug_file, "WARNING: raw device write initiated\n"));
state->rawdev_op = 1;
/* debug code follows */
state->rawdev.end_pos = (uint64_t)128 * (uint64_t)1048576;
/* end of debug code */
}
}
}
......
......@@ -161,15 +161,6 @@ int camogm_frame_jpeg(camogm_state *state)
}
}
/* debug code follows */
fprintf(debug_file, "\n=== raw device write, iovec dump ===\n");
fprintf(debug_file, "split_cntr = %ld; split_ptr = %p; split_index = %d\n", split_cntr, split_ptr, split_index);
for (int i = 0; i < chunks_used; i++) {
fprintf(debug_file, "i = %d; iov_base = %p; iov_len = %u\n", i, chunks_iovec[i].iov_base, chunks_iovec[i].iov_len);
}
fprintf(debug_file, "total len = %d\n======\n", l);
/* end of debug code */
if (split_index < 0) {
iovlen = writev(state->rawdev.rawdev_fd, chunks_iovec, chunks_used);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment