diff options
| author | Christian Hopps <chopps@labn.net> | 2023-04-26 17:50:46 -0400 |
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2023-05-01 13:47:12 -0400 |
| commit | cfa0facbf936fc6cc053fafea7d2b6fa8bccfc4c (patch) | |
| tree | 727b06f65947ae9702c691dfeb4dfe8951225ca8 /mgmtd/mgmt_ds.c | |
| parent | 13c426150fd4699466306d88a917df6493faf9bd (diff) | |
mgmtd: fully implement debug flags for mgmtd and clients
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'mgmtd/mgmt_ds.c')
| -rw-r--r-- | mgmtd/mgmt_ds.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/mgmtd/mgmt_ds.c b/mgmtd/mgmt_ds.c index 05a67a89cd..b5eaf7bff6 100644 --- a/mgmtd/mgmt_ds.c +++ b/mgmtd/mgmt_ds.c @@ -15,20 +15,10 @@ #include "mgmtd/mgmt_txn.h" #include "libyang/libyang.h" -#ifdef REDIRECT_DEBUG_TO_STDERR #define MGMTD_DS_DBG(fmt, ...) \ - fprintf(stderr, "%s: " fmt "\n", __func__, ##__VA_ARGS__) -#define MGMTD_DS_ERR(fmt, ...) \ - fprintf(stderr, "%s: ERROR, " fmt "\n", __func__, ##__VA_ARGS__) -#else /* REDIRECT_DEBUG_TO_STDERR */ -#define MGMTD_DS_DBG(fmt, ...) \ - do { \ - if (mgmt_debug_ds) \ - zlog_debug("%s: " fmt, __func__, ##__VA_ARGS__); \ - } while (0) + DEBUGD(&mgmt_debug_ds, "%s:" fmt, __func__, ##__VA_ARGS__) #define MGMTD_DS_ERR(fmt, ...) \ zlog_err("%s: ERROR: " fmt, __func__, ##__VA_ARGS__) -#endif /* REDIRECT_DEBUG_TO_STDERR */ struct mgmt_ds_ctx { Mgmtd__DatastoreId ds_id; |
