mt7615,mt7915: replace fw log 0-terminating code with wiphy info length limit

Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
Felix Fietkau
2021-03-27 20:29:16 +01:00
parent b860906689
commit 465dda65ee
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -424,8 +424,8 @@ mt7615_mcu_rx_log_message(struct mt7615_dev *dev, struct sk_buff *skb)
break;
}
skb->data[skb->len] = 0;
wiphy_info(mt76_hw(dev)->wiphy, "%s: %s", type, data);
wiphy_info(mt76_hw(dev)->wiphy, "%s: %*s", type,
skb->len - sizeof(*rxd), data);
}
static void
+2 -2
View File
@@ -521,8 +521,8 @@ mt7915_mcu_rx_log_message(struct mt7915_dev *dev, struct sk_buff *skb)
break;
}
skb->data[skb->len] = 0;
wiphy_info(mt76_hw(dev)->wiphy, "%s: %s", type, data);
wiphy_info(mt76_hw(dev)->wiphy, "%s: %*s", type,
skb->len - sizeof(*rxd), data);
}
static void