aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/batman-adv/bat_iv_ogm.c2
-rw-r--r--net/batman-adv/bridge_loop_avoidance.c18
-rw-r--r--net/batman-adv/translation-table.c2
3 files changed, 11 insertions, 11 deletions
diff --git a/net/batman-adv/bat_iv_ogm.c b/net/batman-adv/bat_iv_ogm.c
index 7d02ebd11a7f..f2a364970f57 100644
--- a/net/batman-adv/bat_iv_ogm.c
+++ b/net/batman-adv/bat_iv_ogm.c
@@ -1033,7 +1033,7 @@ static void batadv_iv_ogm_process(const struct ethhdr *ethhdr,
1033 is_single_hop_neigh = true; 1033 is_single_hop_neigh = true;
1034 1034
1035 batadv_dbg(BATADV_DBG_BATMAN, bat_priv, 1035 batadv_dbg(BATADV_DBG_BATMAN, bat_priv,
1036 "Received BATMAN packet via NB: %pM, IF: %s [%pM] (from OG: %pM, via prev OG: %pM, seqno %u, ttvn %u, crc %u, changes %u, td %d, TTL %d, V %d, IDF %d)\n", 1036 "Received BATMAN packet via NB: %pM, IF: %s [%pM] (from OG: %pM, via prev OG: %pM, seqno %u, ttvn %u, crc %#.4x, changes %u, td %d, TTL %d, V %d, IDF %d)\n",
1037 ethhdr->h_source, if_incoming->net_dev->name, 1037 ethhdr->h_source, if_incoming->net_dev->name,
1038 if_incoming->net_dev->dev_addr, batadv_ogm_packet->orig, 1038 if_incoming->net_dev->dev_addr, batadv_ogm_packet->orig,
1039 batadv_ogm_packet->prev_sender, 1039 batadv_ogm_packet->prev_sender,
diff --git a/net/batman-adv/bridge_loop_avoidance.c b/net/batman-adv/bridge_loop_avoidance.c
index 5aebe9327d68..ec12c79104ec 100644
--- a/net/batman-adv/bridge_loop_avoidance.c
+++ b/net/batman-adv/bridge_loop_avoidance.c
@@ -661,12 +661,12 @@ static int batadv_handle_announce(struct batadv_priv *bat_priv,
661 crc = ntohs(*((__be16 *)(&an_addr[4]))); 661 crc = ntohs(*((__be16 *)(&an_addr[4])));
662 662
663 batadv_dbg(BATADV_DBG_BLA, bat_priv, 663 batadv_dbg(BATADV_DBG_BLA, bat_priv,
664 "handle_announce(): ANNOUNCE vid %d (sent by %pM)... CRC = %04x\n", 664 "handle_announce(): ANNOUNCE vid %d (sent by %pM)... CRC = %#.4x\n",
665 vid, backbone_gw->orig, crc); 665 vid, backbone_gw->orig, crc);
666 666
667 if (backbone_gw->crc != crc) { 667 if (backbone_gw->crc != crc) {
668 batadv_dbg(BATADV_DBG_BLA, backbone_gw->bat_priv, 668 batadv_dbg(BATADV_DBG_BLA, backbone_gw->bat_priv,
669 "handle_announce(): CRC FAILED for %pM/%d (my = %04x, sent = %04x)\n", 669 "handle_announce(): CRC FAILED for %pM/%d (my = %#.4x, sent = %#.4x)\n",
670 backbone_gw->orig, backbone_gw->vid, 670 backbone_gw->orig, backbone_gw->vid,
671 backbone_gw->crc, crc); 671 backbone_gw->crc, crc);
672 672
@@ -835,7 +835,7 @@ static int batadv_check_claim_group(struct batadv_priv *bat_priv,
835 /* if our mesh friends mac is bigger, use it for ourselves. */ 835 /* if our mesh friends mac is bigger, use it for ourselves. */
836 if (ntohs(bla_dst->group) > ntohs(bla_dst_own->group)) { 836 if (ntohs(bla_dst->group) > ntohs(bla_dst_own->group)) {
837 batadv_dbg(BATADV_DBG_BLA, bat_priv, 837 batadv_dbg(BATADV_DBG_BLA, bat_priv,
838 "taking other backbones claim group: %04x\n", 838 "taking other backbones claim group: %#.4x\n",
839 ntohs(bla_dst->group)); 839 ntohs(bla_dst->group));
840 bla_dst_own->group = bla_dst->group; 840 bla_dst_own->group = bla_dst->group;
841 } 841 }
@@ -1626,10 +1626,10 @@ int batadv_bla_claim_table_seq_print_text(struct seq_file *seq, void *offset)
1626 1626
1627 primary_addr = primary_if->net_dev->dev_addr; 1627 primary_addr = primary_if->net_dev->dev_addr;
1628 seq_printf(seq, 1628 seq_printf(seq,
1629 "Claims announced for the mesh %s (orig %pM, group id %04x)\n", 1629 "Claims announced for the mesh %s (orig %pM, group id %#.4x)\n",
1630 net_dev->name, primary_addr, 1630 net_dev->name, primary_addr,
1631 ntohs(bat_priv->bla.claim_dest.group)); 1631 ntohs(bat_priv->bla.claim_dest.group));
1632 seq_printf(seq, " %-17s %-5s %-17s [o] (%-4s)\n", 1632 seq_printf(seq, " %-17s %-5s %-17s [o] (%-6s)\n",
1633 "Client", "VID", "Originator", "CRC"); 1633 "Client", "VID", "Originator", "CRC");
1634 for (i = 0; i < hash->size; i++) { 1634 for (i = 0; i < hash->size; i++) {
1635 head = &hash->table[i]; 1635 head = &hash->table[i];
@@ -1638,7 +1638,7 @@ int batadv_bla_claim_table_seq_print_text(struct seq_file *seq, void *offset)
1638 hlist_for_each_entry_rcu(claim, node, head, hash_entry) { 1638 hlist_for_each_entry_rcu(claim, node, head, hash_entry) {
1639 is_own = batadv_compare_eth(claim->backbone_gw->orig, 1639 is_own = batadv_compare_eth(claim->backbone_gw->orig,
1640 primary_addr); 1640 primary_addr);
1641 seq_printf(seq, " * %pM on % 5d by %pM [%c] (%04x)\n", 1641 seq_printf(seq, " * %pM on % 5d by %pM [%c] (%#.4x)\n",
1642 claim->addr, claim->vid, 1642 claim->addr, claim->vid,
1643 claim->backbone_gw->orig, 1643 claim->backbone_gw->orig,
1644 (is_own ? 'x' : ' '), 1644 (is_own ? 'x' : ' '),
@@ -1672,10 +1672,10 @@ int batadv_bla_backbone_table_seq_print_text(struct seq_file *seq, void *offset)
1672 1672
1673 primary_addr = primary_if->net_dev->dev_addr; 1673 primary_addr = primary_if->net_dev->dev_addr;
1674 seq_printf(seq, 1674 seq_printf(seq,
1675 "Backbones announced for the mesh %s (orig %pM, group id %04x)\n", 1675 "Backbones announced for the mesh %s (orig %pM, group id %#.4x)\n",
1676 net_dev->name, primary_addr, 1676 net_dev->name, primary_addr,
1677 ntohs(bat_priv->bla.claim_dest.group)); 1677 ntohs(bat_priv->bla.claim_dest.group));
1678 seq_printf(seq, " %-17s %-5s %-9s (%-4s)\n", 1678 seq_printf(seq, " %-17s %-5s %-9s (%-6s)\n",
1679 "Originator", "VID", "last seen", "CRC"); 1679 "Originator", "VID", "last seen", "CRC");
1680 for (i = 0; i < hash->size; i++) { 1680 for (i = 0; i < hash->size; i++) {
1681 head = &hash->table[i]; 1681 head = &hash->table[i];
@@ -1693,7 +1693,7 @@ int batadv_bla_backbone_table_seq_print_text(struct seq_file *seq, void *offset)
1693 continue; 1693 continue;
1694 1694
1695 seq_printf(seq, 1695 seq_printf(seq,
1696 " * %pM on % 5d % 4i.%03is (%04x)\n", 1696 " * %pM on % 5d % 4i.%03is (%#.4x)\n",
1697 backbone_gw->orig, backbone_gw->vid, 1697 backbone_gw->orig, backbone_gw->vid,
1698 secs, msecs, backbone_gw->crc); 1698 secs, msecs, backbone_gw->crc);
1699 } 1699 }
diff --git a/net/batman-adv/translation-table.c b/net/batman-adv/translation-table.c
index 408807eb9df3..40ef9557288a 100644
--- a/net/batman-adv/translation-table.c
+++ b/net/batman-adv/translation-table.c
@@ -2518,7 +2518,7 @@ void batadv_tt_update_orig(struct batadv_priv *bat_priv,
2518 orig_node->tt_crc != tt_crc) { 2518 orig_node->tt_crc != tt_crc) {
2519request_table: 2519request_table:
2520 batadv_dbg(BATADV_DBG_TT, bat_priv, 2520 batadv_dbg(BATADV_DBG_TT, bat_priv,
2521 "TT inconsistency for %pM. Need to retrieve the correct information (ttvn: %u last_ttvn: %u crc: %u last_crc: %u num_changes: %u)\n", 2521 "TT inconsistency for %pM. Need to retrieve the correct information (ttvn: %u last_ttvn: %u crc: %#.4x last_crc: %#.4x num_changes: %u)\n",
2522 orig_node->orig, ttvn, orig_ttvn, tt_crc, 2522 orig_node->orig, ttvn, orig_ttvn, tt_crc,
2523 orig_node->tt_crc, tt_num_changes); 2523 orig_node->tt_crc, tt_num_changes);
2524 batadv_send_tt_request(bat_priv, orig_node, ttvn, 2524 batadv_send_tt_request(bat_priv, orig_node, ttvn,