| 24 | } |
| 25 | |
| 26 | static int packet_trace_pack(const char *buf, unsigned int len, int sideband) |
| 27 | { |
| 28 | if (!sideband) { |
| 29 | trace_verbatim(&trace_pack, buf, len); |
| 30 | return 1; |
| 31 | } else if (len && *buf == '\1') { |
| 32 | trace_verbatim(&trace_pack, buf + 1, len - 1); |
| 33 | return 1; |
| 34 | } else { |
| 35 | /* it's another non-pack sideband */ |
| 36 | return 0; |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | static void packet_trace(const char *buf, unsigned int len, int write) |
| 41 | { |
no test coverage detected