Skip to content

Commit dba1add

Browse files
committed
Reorder CMD_DEBUG_LEVEL processing to match definition order
1 parent 4852910 commit dba1add

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/eng_back.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1200,8 +1200,6 @@ int ctx_engine_ctrl(ENGINE_CTX *ctx, int cmd, long i, void *p, void (*f)())
12001200
return ctx_ctrl_set_module(ctx, (const char *)p);
12011201
case CMD_PIN:
12021202
return ctx_ctrl_set_pin(ctx, (const char *)p);
1203-
case CMD_DEBUG_LEVEL:
1204-
return ctx_ctrl_set_debug_level(ctx, (int)i);
12051203
case CMD_VERBOSE:
12061204
return ctx_ctrl_set_debug_level(ctx, 7);
12071205
case CMD_QUIET:
@@ -1222,6 +1220,8 @@ int ctx_engine_ctrl(ENGINE_CTX *ctx, int cmd, long i, void *p, void (*f)())
12221220
return ctx_enumerate_slots(ctx);
12231221
case CMD_VLOG_A:
12241222
return ctx_ctrl_set_vlog(ctx, p);
1223+
case CMD_DEBUG_LEVEL:
1224+
return ctx_ctrl_set_debug_level(ctx, (int)i);
12251225
default:
12261226
ENGerr(ENG_F_CTX_ENGINE_CTRL, ENG_R_UNKNOWN_COMMAND);
12271227
break;

src/eng_front.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ static const ENGINE_CMD_DEFN engine_cmd_defns[] = {
4848
"PIN",
4949
"Specifies the pin code",
5050
ENGINE_CMD_FLAG_STRING},
51-
{CMD_DEBUG_LEVEL,
52-
"DEBUG_LEVEL",
53-
"Set the debug level: 0=emerg, 1=alert, 2=crit, 3=err, 4=warning, 5=notice (default), 6=info, 7=debug",
54-
ENGINE_CMD_FLAG_NUMERIC},
5551
{CMD_VERBOSE,
5652
"VERBOSE",
5753
"Print additional details",
@@ -88,6 +84,10 @@ static const ENGINE_CMD_DEFN engine_cmd_defns[] = {
8884
"VLOG_A",
8985
"Set the logging callback",
9086
ENGINE_CMD_FLAG_INTERNAL},
87+
{CMD_DEBUG_LEVEL,
88+
"DEBUG_LEVEL",
89+
"Set the debug level: 0=emerg, 1=alert, 2=crit, 3=err, 4=warning, 5=notice (default), 6=info, 7=debug",
90+
ENGINE_CMD_FLAG_NUMERIC},
9191
{0, NULL, NULL, 0}
9292
};
9393

0 commit comments

Comments
 (0)