From 9bace5c2d389c7839ad3e949712728c938493e53 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Tue, 4 Jan 2022 21:10:37 +0100 Subject: pimd: remove pim_str_sg_set() ... and replace with `%pSG` printfrr specifier. Signed-off-by: David Lamparter --- pimd/pim_str.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pimd/pim_str.c') diff --git a/pimd/pim_str.c b/pimd/pim_str.c index 180ed69fd..1ec17cfab 100644 --- a/pimd/pim_str.c +++ b/pimd/pim_str.c @@ -46,7 +46,7 @@ char *pim_str_sg_dump(const pim_sgaddr *sg) { static char sg_str[PIM_SG_LEN]; - pim_str_sg_set(sg, sg_str); + snprintfrr(sg_str, sizeof(sg_str), "%pSG", sg); return sg_str; } -- cgit v1.2.3