}
if (use_color()) {
- n = sprintf(ts_str + ts_pos, "%s", COLOR_OFF);
- if (n > 0)
- ts_pos += n;
- }
-
- if (use_color()) {
+ sprintf(ts_str + ts_pos, "%s", COLOR_OFF);
n = sprintf(line + pos, "%s", color);
if (n > 0)
pos += n;
if (extra) {
n = sprintf(line + pos, " %s", extra);
- if (n > 0) {
- pos += n;
+ if (n > 0)
len += n;
- }
}
if (ts_len > 0) {
" (0x%2.2x)", mask);
print_field("TX PHYs preference: 0x%2.2x", tx_phys);
- mask = tx_phys;
mask = print_bitfield(2, tx_phys, le_phys);
if (mask)
" (0x%2.2x)", mask);
print_field("RX PHYs preference: 0x%2.2x", rx_phys);
- mask = rx_phys;
mask = print_bitfield(2, rx_phys, le_phys);
if (mask)
break;
default:
str = "Reserved";
- color_on = COLOR_RED;
break;
}
+ print_field("CTE Type: %s (0x%2x)", str, evt->cte_type);
+
switch (evt->data_status) {
case 0x00:
str = "Complete";