From 1c7f624509665a6d730837d54dc011ed44e418a3 Mon Sep 17 00:00:00 2001 From: Chirag Shah Date: Wed, 15 Jul 2020 13:43:04 -0700 Subject: [PATCH] tools: nb generate callback script to use attr northbound genrate callback script to use attr->event in case passed in generated callbacks.. Signed-off-by: Chirag Shah --- tools/gen_northbound_callbacks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/gen_northbound_callbacks.c b/tools/gen_northbound_callbacks.c index 8dccbac3ae..eaab932228 100644 --- a/tools/gen_northbound_callbacks.c +++ b/tools/gen_northbound_callbacks.c @@ -194,7 +194,7 @@ static void generate_callback(const struct nb_callback_info *ncinfo, case NB_OP_MODIFY: case NB_OP_DESTROY: case NB_OP_MOVE: - printf("\tswitch (event) {\n" + printf("\tswitch (args->event) {\n" "\tcase NB_EV_VALIDATE:\n" "\tcase NB_EV_PREPARE:\n" "\tcase NB_EV_ABORT:\n" -- 2.39.5