mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-02 07:17:57 +02:00
platform: #ifdef out nlh_seq_last_handled if it's unused
This is not for performance. It's to separate the relavant parts from a part that is only for logging/asserts.
This commit is contained in:
parent
15e357c30a
commit
c59687c6b2
1 changed files with 4 additions and 0 deletions
|
|
@ -2349,7 +2349,9 @@ typedef struct _NMLinuxPlatformPrivate NMLinuxPlatformPrivate;
|
|||
struct _NMLinuxPlatformPrivate {
|
||||
struct nl_sock *nlh;
|
||||
guint32 nlh_seq_next;
|
||||
#ifdef NM_MORE_LOGGING
|
||||
guint32 nlh_seq_last_handled;
|
||||
#endif
|
||||
NMPCache *cache;
|
||||
GIOChannel *event_channel;
|
||||
guint event_id;
|
||||
|
|
@ -3503,9 +3505,11 @@ event_seq_check (NMPlatform *platform, struct nl_msg *msg, WaitForNlResponseResu
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef NM_MORE_LOGGING
|
||||
if (seq_number != priv->nlh_seq_last_handled)
|
||||
_LOGt ("netlink: recvmsg: unwaited sequence number %u", seq_number);
|
||||
priv->nlh_seq_last_handled = seq_number;
|
||||
#endif
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue