libyang BUGFIX strictly cast lnegths to int for "%.*s" format strings
diff --git a/src/tree_data.c b/src/tree_data.c
index 4c16cb7..83e4b0e 100644
--- a/src/tree_data.c
+++ b/src/tree_data.c
@@ -1117,7 +1117,7 @@
     /* find the module */
     if (prefix) {
         module = ly_ctx_get_module_implemented2(ctx, prefix, pref_len);
-        LY_CHECK_ERR_RET(!module, LOGERR(ctx, LY_EINVAL, "Module \"%.*s\" not found.", pref_len, prefix), LY_ENOTFOUND);
+        LY_CHECK_ERR_RET(!module, LOGERR(ctx, LY_EINVAL, "Module \"%.*s\" not found.", (int)pref_len, prefix), LY_ENOTFOUND);
     }
 
     /* set value if none */
@@ -2478,7 +2478,7 @@
     if (!ant) {
         /* attribute is not defined as a metadata annotation (RFC 7952) */
         LOGVAL(mod->ctx, LYVE_REFERENCE, "Annotation definition for attribute \"%s:%.*s\" not found.",
-                mod->name, name_len, name);
+                mod->name, (int)name_len, name);
         ret = LY_EINVAL;
         goto cleanup;
     }
@@ -3467,7 +3467,7 @@
         str = strndup(prefix, pref_len);
         module = ly_ctx_get_module_latest(ctx, str);
         free(str);
-        LY_CHECK_ERR_RET(!module, LOGERR(ctx, LY_EINVAL, "Module \"%.*s\" not found.", pref_len, prefix), NULL);
+        LY_CHECK_ERR_RET(!module, LOGERR(ctx, LY_EINVAL, "Module \"%.*s\" not found.", (int)pref_len, prefix), NULL);
     }
 
     /* find the metadata */