libyang BUGFIX type size problems
diff --git a/src/tree_schema_common.c b/src/tree_schema_common.c
index 94e91a4..67cbae6 100644
--- a/src/tree_schema_common.c
+++ b/src/tree_schema_common.c
@@ -1001,7 +1001,7 @@
 lysp_check_stringchar(struct lysp_ctx *ctx, uint32_t c)
 {
     if (!is_yangutf8char(c)) {
-        LOGVAL_PARSER(ctx, LY_VCODE_INCHAR, c);
+        LOGVAL_PARSER(ctx, LY_VCODE_INCHAR, (char)c);
         return LY_EVALID;
     }
     return LY_SUCCESS;
@@ -1014,11 +1014,12 @@
         if (!is_yangidentstartchar(c)) {
             if ((c < UCHAR_MAX) && isprint(c)) {
                 if (ctx) {
-                    LOGVAL_PARSER(ctx, LYVE_SYNTAX_YANG, "Invalid identifier first character '%c' (0x%04x).", (char)c, c);
+                    LOGVAL_PARSER(ctx, LYVE_SYNTAX_YANG, "Invalid identifier first character '%c' (0x%04" PRIx32 ").",
+                            (char)c, c);
                 }
             } else {
                 if (ctx) {
-                    LOGVAL_PARSER(ctx, LYVE_SYNTAX_YANG, "Invalid identifier first character 0x%04x.", c);
+                    LOGVAL_PARSER(ctx, LYVE_SYNTAX_YANG, "Invalid identifier first character 0x%04" PRIx32 ".", c);
                 }
             }
             return LY_EVALID;
@@ -1034,7 +1035,7 @@
         (*prefix) = 1;
     } else if (!is_yangidentchar(c)) {
         if (ctx) {
-            LOGVAL_PARSER(ctx, LYVE_SYNTAX_YANG, "Invalid identifier character '%c' (0x%04x).", (char)c, c);
+            LOGVAL_PARSER(ctx, LYVE_SYNTAX_YANG, "Invalid identifier character '%c' (0x%04" PRIx32 ").", (char)c, c);
         }
         return LY_EVALID;
     }