diff options
author | Tom Gundersen <teg@jklm.no> | 2014-05-15 17:43:14 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-05-15 18:16:31 +0200 |
commit | 987efa17dd5c9be156d8f49ddd942df20a72dcb1 (patch) | |
tree | 4c60702429197f47c2abc98a0a317e43e6e79b73 /src/network/networkd.h | |
parent | 5261692fe5a4ac82f9783d57a07b0a4786dc01ab (diff) |
networkd: logging - align messages
Diffstat (limited to 'src/network/networkd.h')
-rw-r--r-- | src/network/networkd.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/networkd.h b/src/network/networkd.h index c5f2d076d0..f250f19742 100644 --- a/src/network/networkd.h +++ b/src/network/networkd.h @@ -424,7 +424,7 @@ DEFINE_TRIVIAL_CLEANUP_FUNC(Link*, link_unref); /* Macros which append INTERFACE= to the message */ -#define log_full_link(level, link, fmt, ...) log_meta_object(level, __FILE__, __LINE__, __func__, "INTERFACE=", link->ifname, "%s: " fmt, link->ifname, ##__VA_ARGS__) +#define log_full_link(level, link, fmt, ...) log_meta_object(level, __FILE__, __LINE__, __func__, "INTERFACE=", link->ifname, "%*s: " fmt, IFNAMSIZ, link->ifname, ##__VA_ARGS__) #define log_debug_link(link, ...) log_full_link(LOG_DEBUG, link, ##__VA_ARGS__) #define log_info_link(link, ...) log_full_link(LOG_INFO, link, ##__VA_ARGS__) #define log_notice_link(link, ...) log_full_link(LOG_NOTICE, link, ##__VA_ARGS__) @@ -435,7 +435,7 @@ DEFINE_TRIVIAL_CLEANUP_FUNC(Link*, link_unref); /* More macros which append INTERFACE= to the message */ -#define log_full_netdev(level, netdev, fmt, ...) log_meta_object(level, __FILE__, __LINE__, __func__, "INTERFACE=", netdev->ifname, "%s: " fmt, netdev->ifname, ##__VA_ARGS__) +#define log_full_netdev(level, netdev, fmt, ...) log_meta_object(level, __FILE__, __LINE__, __func__, "INTERFACE=", netdev->ifname, "%*s: " fmt, IFNAMSIZ, netdev->ifname, ##__VA_ARGS__) #define log_debug_netdev(netdev, ...) log_full_netdev(LOG_DEBUG, netdev, ##__VA_ARGS__) #define log_info_netdev(netdev, ...) log_full_netdev(LOG_INFO, netdev, ##__VA_ARGS__) #define log_notice_netdev(netdev, ...) log_full_netdev(LOG_NOTICE, netdev, ##__VA_ARGS__) |