Skip to content

Commit

Permalink
Use (S, G) format for all logging
Browse files Browse the repository at this point in the history
Signed-off-by: Joachim Wiberg <[email protected]>
  • Loading branch information
troglobit committed Oct 27, 2024
1 parent 72ba5f7 commit ceb8423
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/prune.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ static void remove_sources(struct gtable *gt)
continue;

IF_DEBUG(DEBUG_PRUNE) {
logit(LOG_DEBUG, 0, "remove_sources() deleting (%s %s) (next is %d sec)",
logit(LOG_DEBUG, 0, "remove_sources() deleting (%s, %s) (next is %d sec)",
inet_fmt(st->st_origin, s1, sizeof(s1)),
inet_fmt(gt->gt_mcastgrp, s2, sizeof(s2)),
gt->gt_prune_rexmit);
Expand Down Expand Up @@ -1543,7 +1543,7 @@ void steal_sources(struct rtentry *rt)

if (gt->gt_srctbl->st_ctime != 0) {
if (k_del_rg(gt->gt_srctbl->st_origin, gt) < 0) {
logit(LOG_WARNING, errno, "steal_sources() trying to delete (%s %s)",
logit(LOG_WARNING, errno, "steal_sources() trying to delete (%s, %s)",
inet_fmt(gt->gt_srctbl->st_origin, s1, sizeof(s1)),
inet_fmt(gt->gt_mcastgrp, s2, sizeof(s2)));
}
Expand Down Expand Up @@ -1744,7 +1744,7 @@ void age_table_entry(void)
}
if (st->st_ctime != 0) {
if (k_del_rg(st->st_origin, gt) < 0) {
logit(LOG_WARNING, errno, "%s() trying to delete (%s %s)",
logit(LOG_WARNING, errno, "%s() trying to delete (%s, %s)",
__func__, inet_fmt(st->st_origin, s1, sizeof(s1)),
inet_fmt(gt->gt_mcastgrp, s2, sizeof(s2)));
}
Expand Down Expand Up @@ -1846,7 +1846,7 @@ void age_table_entry(void)
if (gt->gt_srctbl) {
if (gt->gt_srctbl->st_ctime != 0) {
if (k_del_rg(gt->gt_srctbl->st_origin, gt) < 0) {
logit(LOG_WARNING, errno, "age_table_entry() trying to delete no-route (%s %s)",
logit(LOG_WARNING, errno, "age_table_entry() trying to delete no-route (%s, %s)",
inet_fmt(gt->gt_srctbl->st_origin, s1, sizeof(s1)),
inet_fmt(gt->gt_mcastgrp, s2, sizeof(s2)));
}
Expand Down

0 comments on commit ceb8423

Please sign in to comment.