mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 13:27:53 +00:00
lib: mgmtd: fix/stdize debug message macros
Signed-off-by: Christian Hopps <chopps@labn.net>
This commit is contained in:
parent
f0fa4c0370
commit
79d40972fd
@ -21,7 +21,7 @@
|
||||
#include "lib/mgmt_be_client_clippy.c"
|
||||
|
||||
#define MGMTD_BE_CLIENT_DBG(fmt, ...) \
|
||||
DEBUGD(&mgmt_dbg_be_client, "BE-CLIENT: %s:" fmt, __func__, \
|
||||
DEBUGD(&mgmt_dbg_be_client, "BE-CLIENT: %s: " fmt, __func__, \
|
||||
##__VA_ARGS__)
|
||||
#define MGMTD_BE_CLIENT_ERR(fmt, ...) \
|
||||
zlog_err("BE-CLIENT: %s: ERROR: " fmt, __func__, ##__VA_ARGS__)
|
||||
|
@ -120,7 +120,7 @@ struct mgmt_fe_client_cbs {
|
||||
extern struct debug mgmt_dbg_fe_client;
|
||||
|
||||
#define MGMTD_FE_CLIENT_DBG(fmt, ...) \
|
||||
DEBUGD(&mgmt_dbg_fe_client, "FE-CLIENT: %s:" fmt, __func__, \
|
||||
DEBUGD(&mgmt_dbg_fe_client, "FE-CLIENT: %s: " fmt, __func__, \
|
||||
##__VA_ARGS__)
|
||||
#define MGMTD_FE_CLIENT_ERR(fmt, ...) \
|
||||
zlog_err("FE-CLIENT: %s: ERROR: " fmt, __func__, ##__VA_ARGS__)
|
||||
|
@ -20,7 +20,7 @@
|
||||
#include "mgmtd/mgmt_be_adapter.h"
|
||||
|
||||
#define MGMTD_BE_ADAPTER_DBG(fmt, ...) \
|
||||
DEBUGD(&mgmt_debug_be, "BE-ADAPTER: %s:" fmt, __func__, ##__VA_ARGS__)
|
||||
DEBUGD(&mgmt_debug_be, "BE-ADAPTER: %s: " fmt, __func__, ##__VA_ARGS__)
|
||||
#define MGMTD_BE_ADAPTER_ERR(fmt, ...) \
|
||||
zlog_err("BE-ADAPTER: %s: ERROR: " fmt, __func__, ##__VA_ARGS__)
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
#include "libyang/libyang.h"
|
||||
|
||||
#define MGMTD_DS_DBG(fmt, ...) \
|
||||
DEBUGD(&mgmt_debug_ds, "%s:" fmt, __func__, ##__VA_ARGS__)
|
||||
DEBUGD(&mgmt_debug_ds, "DS: %s: " fmt, __func__, ##__VA_ARGS__)
|
||||
#define MGMTD_DS_ERR(fmt, ...) \
|
||||
zlog_err("%s: ERROR: " fmt, __func__, ##__VA_ARGS__)
|
||||
|
||||
|
@ -21,7 +21,7 @@
|
||||
#include "mgmtd/mgmt_fe_adapter.h"
|
||||
|
||||
#define MGMTD_FE_ADAPTER_DBG(fmt, ...) \
|
||||
DEBUGD(&mgmt_debug_fe, "FE-ADAPTER: %s:" fmt, __func__, ##__VA_ARGS__)
|
||||
DEBUGD(&mgmt_debug_fe, "FE-ADAPTER: %s: " fmt, __func__, ##__VA_ARGS__)
|
||||
#define MGMTD_FE_ADAPTER_ERR(fmt, ...) \
|
||||
zlog_err("FE-ADAPTER: %s: ERROR: " fmt, __func__, ##__VA_ARGS__)
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
#include "mgmtd/mgmt_txn.h"
|
||||
|
||||
#define MGMTD_TXN_DBG(fmt, ...) \
|
||||
DEBUGD(&mgmt_debug_txn, "%s:" fmt, __func__, ##__VA_ARGS__)
|
||||
DEBUGD(&mgmt_debug_txn, "TXN: %s: " fmt, __func__, ##__VA_ARGS__)
|
||||
#define MGMTD_TXN_ERR(fmt, ...) \
|
||||
zlog_err("%s: ERROR: " fmt, __func__, ##__VA_ARGS__)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user