diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-09-13 12:24:14 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-13 12:24:14 -0400 |
| commit | 8ce42777bc0d23cf3ac3bb4c9e989b579c8ad97e (patch) | |
| tree | f7a1ae08ae641b7b3227c681b9b13e4c1102f454 /ldpd/ldp_debug.h | |
| parent | fea0584841b2145d5b264e8cbde3631db8a382c2 (diff) | |
| parent | 08e4b244515682d2adb779a429615034f4956262 (diff) | |
Merge pull request #1158 from opensourcerouting/ldpd-label-allocation
ldpd label allocation
Diffstat (limited to 'ldpd/ldp_debug.h')
| -rw-r--r-- | ldpd/ldp_debug.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ldpd/ldp_debug.h b/ldpd/ldp_debug.h index 4b91656851..a0972cea8e 100644 --- a/ldpd/ldp_debug.h +++ b/ldpd/ldp_debug.h @@ -31,6 +31,9 @@ struct ldp_debug { int event; #define LDP_DEBUG_EVENT 0x01 + int labels; +#define LDP_DEBUG_LABELS 0x01 + int msg; #define LDP_DEBUG_MSG_RECV 0x01 #define LDP_DEBUG_MSG_RECV_ALL 0x02 @@ -90,6 +93,12 @@ do { \ log_debug("event: " emsg, __VA_ARGS__); \ } while (0) +#define debug_labels(emsg, ...) \ +do { \ + if (LDP_DEBUG(labels, LABELS)) \ + log_debug("labels: " emsg, __VA_ARGS__); \ +} while (0) + #define debug_msg_recv(emsg, ...) \ do { \ if (LDP_DEBUG(msg, MSG_RECV)) \ |
