tapasco icon indicating copy to clipboard operation
tapasco copied to clipboard

[libtapasco] Limit printing buffer contents in debug trace

Open tsmk94 opened this issue 2 years ago • 0 comments

When running software with RUST_LOG=trace the content of every buffer copied to/from device memory is printed byte-wise multiple times. Thus, the debug trace is quite useless as soon as buffer sizes get bit larger than some kilobytes.

In my oppinion it would be sufficient and make much more sense to only print the first couple elements (e.g. 100) bytes of the buffer to be copied to device memory.

tsmk94 avatar Jan 04 '23 10:01 tsmk94