context BUGFIX name of parameter in error message from ly_ctx_unset_searchdir()
diff --git a/src/context.c b/src/context.c
index e7b4773..05cbf07 100644
--- a/src/context.c
+++ b/src/context.c
@@ -176,7 +176,7 @@
     }
 
     if (index >= ctx->search_paths.count) {
-        LOGARG(ctx, value);
+        LOGARG(ctx, index);
         return LY_EINVAL;
     } else {
         return ly_set_rm_index(&ctx->search_paths, index, free);