Format function tracing logs Bash C