summaryrefslogtreecommitdiff
path: root/lib/ferr.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-07-20 15:47:42 -0400
committerDonald Sharp <sharpd@nvidia.com>2022-07-20 15:50:32 -0400
commitcb1991af8c3f09e28c90932cb36bd1d2c07375d6 (patch)
tree8afceae737eed0619bdd3c074676795efccbdb2a /lib/ferr.c
parentefa98761d28b79796c0df91f823b241106d5f7b6 (diff)
*: frr_with_mutex change to follow our standard
convert: frr_with_mutex(..) to: frr_with_mutex (..) To make all our code agree with what clang-format is going to produce Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'lib/ferr.c')
-rw-r--r--lib/ferr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/ferr.c b/lib/ferr.c
index 9d79f38b7c..bef7f3b209 100644
--- a/lib/ferr.c
+++ b/lib/ferr.c
@@ -84,7 +84,7 @@ void log_ref_add(struct log_ref *ref)
{
uint32_t i = 0;
- frr_with_mutex(&refs_mtx) {
+ frr_with_mutex (&refs_mtx) {
while (ref[i].code != END_FERR) {
(void)hash_get(refs, &ref[i], hash_alloc_intern);
i++;
@@ -98,7 +98,7 @@ struct log_ref *log_ref_get(uint32_t code)
struct log_ref *ref;
holder.code = code;
- frr_with_mutex(&refs_mtx) {
+ frr_with_mutex (&refs_mtx) {
ref = hash_lookup(refs, &holder);
}
@@ -115,7 +115,7 @@ void log_ref_display(struct vty *vty, uint32_t code, bool json)
if (json)
top = json_object_new_object();
- frr_with_mutex(&refs_mtx) {
+ frr_with_mutex (&refs_mtx) {
errlist = code ? list_new() : hash_to_list(refs);
}
@@ -182,7 +182,7 @@ DEFUN_NOSH(show_error_code,
void log_ref_init(void)
{
- frr_with_mutex(&refs_mtx) {
+ frr_with_mutex (&refs_mtx) {
refs = hash_create(ferr_hash_key, ferr_hash_cmp,
"Error Reference Texts");
}
@@ -190,7 +190,7 @@ void log_ref_init(void)
void log_ref_fini(void)
{
- frr_with_mutex(&refs_mtx) {
+ frr_with_mutex (&refs_mtx) {
hash_clean(refs, NULL);
hash_free(refs);
refs = NULL;