]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: mgmtd: fix/stdize debug message macros
authorChristian Hopps <chopps@labn.net>
Mon, 12 Jun 2023 04:25:07 +0000 (00:25 -0400)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Thu, 22 Jun 2023 21:56:44 +0000 (21:56 +0000)
Signed-off-by: Christian Hopps <chopps@labn.net>
(cherry picked from commit 79d40972fddc2651b499bf2f5780aea97c9f5d07)

lib/mgmt_be_client.c
lib/mgmt_fe_client.h
mgmtd/mgmt_be_adapter.c
mgmtd/mgmt_ds.c
mgmtd/mgmt_fe_adapter.c
mgmtd/mgmt_txn.c

index 5c875204f7af82b4776f0acca180c25730dba6d1..24084f6fe8c4746bc4e2f22285f62e4fa375fa49 100644 (file)
@@ -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__)
index edf861746c2d21274d228ac580ba11c4799bca5c..845d0bd94a087c50d479788ae62acd1030815880 100644 (file)
@@ -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__)
index e4a62951d28d9a2203e04d2e784b35e9c9197f4a..49a307e9c208b042d9a74b3871a8383c7f272181 100644 (file)
@@ -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__)
 
index 3fd47862b2e8dcae137ce154dcf5156f05f43724..2926c9dd4f760a879b131304e72ede0b75046ebe 100644 (file)
@@ -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__)
 
index 7509d24a6adb7b2a70fbfd6d6562a2db720f4632..eb23fc3d60c0fe97a66b6545b665c19b79fb9d4f 100644 (file)
@@ -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__)
 
index 6b85bd68f321254edef72d7c882fac4e04873c2e..18aeab711ff8c9c151b76b88b7164b4419fdcb33 100644 (file)
@@ -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__)