diff options
author | Tom Gundersen <teg@jklm.no> | 2014-04-20 12:59:24 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-04-20 14:42:57 +0200 |
commit | 069e10a0e0c628875386002778750307ee353bee (patch) | |
tree | 48b13882901d2f9dbdbeeafdda5394cd87693eb0 /src/network/networkd-link.c | |
parent | 92d927f850d4b668b44f3e5f41e266d934d03726 (diff) |
networkd: link - make debug logging a bit more readable
Drop leading zeros which will never be used when printing the link flags.
Diffstat (limited to 'src/network/networkd-link.c')
-rw-r--r-- | src/network/networkd-link.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/network/networkd-link.c b/src/network/networkd-link.c index aad72debeb..39f2a59227 100644 --- a/src/network/networkd-link.c +++ b/src/network/networkd-link.c @@ -1095,12 +1095,13 @@ static int link_update_flags(Link *link, unsigned flags) { else if (flags_removed & IFF_RUNNING) log_debug_link(link, "link is not running"); + /* link flags are currently at most 18 bits, let's default to printing 20 */ if (flags_added & generic_flags) - log_debug_link(link, "ignored link flags gained: %#.8x", + log_debug_link(link, "unknown link flags gained: %#.5x (ignoring)", flags_added & generic_flags); if (flags_removed & generic_flags) - log_debug_link(link, "ignored link flags lost: %#.8x", + log_debug_link(link, "unknown link flags lost: %#.5x (ignoring)", flags_removed & generic_flags); if (carrier_gained) { |