diff options
author | Antonio Quartulli <ordex@autistici.org> | 2012-11-19 09:01:43 +0100 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2013-01-12 11:58:20 +0100 |
commit | 39a329915889a220b5f2c3f2eb3d7fd892567715 (patch) | |
tree | 0e7c7465361df65a5c6341872f3ce5c702e8e18f /net/batman-adv/translation-table.c | |
parent | batman-adv: print the CRC together with the translation tables (diff) | |
download | linux-39a329915889a220b5f2c3f2eb3d7fd892567715.tar.xz linux-39a329915889a220b5f2c3f2eb3d7fd892567715.zip |
batman-adv: unify and properly print hex values
Values are printed in hexadecimal format in several points in the
code, but they are not printed using the same format string.
This patches unifies the format used for such numbers so that they
look the same everywhere.
Given the fact that all the variables printed as hexadecimal are 16
bit long, this is the chosen printing format: %#.4x
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Diffstat (limited to 'net/batman-adv/translation-table.c')
-rw-r--r-- | net/batman-adv/translation-table.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, orig_node->tt_crc != tt_crc) { request_table: batadv_dbg(BATADV_DBG_TT, bat_priv, - "TT inconsistency for %pM. Need to retrieve the correct information (ttvn: %u last_ttvn: %u crc: %u last_crc: %u num_changes: %u)\n", + "TT inconsistency for %pM. Need to retrieve the correct information (ttvn: %u last_ttvn: %u crc: %#.4x last_crc: %#.4x num_changes: %u)\n", orig_node->orig, ttvn, orig_ttvn, tt_crc, orig_node->tt_crc, tt_num_changes); batadv_send_tt_request(bat_priv, orig_node, ttvn, |