default-route-manager: decryptify logging line for default-route-manager
The default route manager logs for each entry relevant information, in a compact but cryptic way: default-route: entry[0/dev:0x5633d5528560:enp0s25:1:+sync]: record:add 0.0.0.0/0 via 192.168.0.1 dev 2 metric 100 mss 0 rt-src user (100) The flag whether a route is configured or not, was only expressed via 0|1. Change that to log instead: default-route: entry[0/dev:0x5633d5528560:enp0s25:+has:+sync]: record:add 0.0.0.0/0 via 192.168.0.1 dev 2 metric 100 mss 0 rt-src user (100)
This commit is contained in:
@@ -124,7 +124,7 @@ NM_DEFINE_SINGLETON_GETTER (NMDefaultRouteManager, nm_default_route_manager_get,
|
|||||||
const Entry *const __entry = (entry); \
|
const Entry *const __entry = (entry); \
|
||||||
\
|
\
|
||||||
_nm_log (__level, __domain, 0, \
|
_nm_log (__level, __domain, 0, \
|
||||||
"%s: entry[%u/%s:%p:%s:%c:%csync]: "_NM_UTILS_MACRO_FIRST(__VA_ARGS__), \
|
"%s: entry[%u/%s:%p:%s:%chas:%csync]: "_NM_UTILS_MACRO_FIRST(__VA_ARGS__), \
|
||||||
self != singleton_instance \
|
self != singleton_instance \
|
||||||
? nm_sprintf_buf (__prefix_buf, "%s%c[%p]", \
|
? nm_sprintf_buf (__prefix_buf, "%s%c[%p]", \
|
||||||
_NMLOG2_PREFIX_NAME, \
|
_NMLOG2_PREFIX_NAME, \
|
||||||
@@ -135,7 +135,7 @@ NM_DEFINE_SINGLETON_GETTER (NMDefaultRouteManager, nm_default_route_manager_get,
|
|||||||
NM_IS_DEVICE (__entry->source.pointer) ? "dev" : "vpn", \
|
NM_IS_DEVICE (__entry->source.pointer) ? "dev" : "vpn", \
|
||||||
__entry->source.pointer, \
|
__entry->source.pointer, \
|
||||||
NM_IS_DEVICE (__entry->source.pointer) ? nm_device_get_iface (__entry->source.device) : nm_active_connection_get_settings_connection_id (NM_ACTIVE_CONNECTION (__entry->source.vpn)), \
|
NM_IS_DEVICE (__entry->source.pointer) ? nm_device_get_iface (__entry->source.device) : nm_active_connection_get_settings_connection_id (NM_ACTIVE_CONNECTION (__entry->source.vpn)), \
|
||||||
(__entry->never_default ? '0' : '1'), \
|
(__entry->never_default ? '-' : '+'), \
|
||||||
(__entry->synced ? '+' : '-') \
|
(__entry->synced ? '+' : '-') \
|
||||||
_NM_UTILS_MACRO_REST(__VA_ARGS__)); \
|
_NM_UTILS_MACRO_REST(__VA_ARGS__)); \
|
||||||
} \
|
} \
|
||||||
|
Reference in New Issue
Block a user