diff --git a/sched/module/mod_modhandle.c b/sched/module/mod_modhandle.c index 2ebf3a4b5ee..99bba01a36c 100644 --- a/sched/module/mod_modhandle.c +++ b/sched/module/mod_modhandle.c @@ -85,7 +85,7 @@ FAR void *modhandle(FAR const char *name) modp = modlib_registry_find(name); if (modp == NULL) { - serr("ERROR: Failed to find module %s: %d\n", name, ret); + serr("ERROR: Failed to find module %s: %d\n", name, modp); set_errno(ENOENT); }