]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: unify and properly print hex values
authorAntonio Quartulli <ordex@autistici.org>
Mon, 19 Nov 2012 08:01:43 +0000 (09:01 +0100)
committerAntonio Quartulli <ordex@autistici.org>
Sat, 12 Jan 2013 10:58:20 +0000 (20:58 +1000)
commitf4ac7f35c67f81a0bce5d9a4601d5fa96dd465e7
tree0e7c7465361df65a5c6341872f3ce5c702e8e18f
parent8a6e9222c27fd508d44a81cd35e7c31b9199c13c
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>
net/batman-adv/bat_iv_ogm.c
net/batman-adv/bridge_loop_avoidance.c
net/batman-adv/translation-table.c