summaryrefslogtreecommitdiff
path: root/lib/if.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/if.c')
-rw-r--r--lib/if.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/if.c b/lib/if.c
index b34744f80d..f03574e787 100644
--- a/lib/if.c
+++ b/lib/if.c
@@ -1567,8 +1567,8 @@ static int lib_interface_destroy(struct nb_cb_destroy_args *args)
case NB_EV_VALIDATE:
ifp = nb_running_get_entry(args->dnode, NULL, true);
if (CHECK_FLAG(ifp->status, ZEBRA_INTERFACE_ACTIVE)) {
- zlog_warn("%s: only inactive interfaces can be deleted",
- __func__);
+ snprintf(args->errmsg, args->errmsg_len,
+ "only inactive interfaces can be deleted");
return NB_ERR_VALIDATION;
}
break;