libyang REFACTOR add more compiler printf attributes

Some bugs fixed because of the new warnings.
diff --git a/src/printer_lyb.c b/src/printer_lyb.c
index b99ec64..820e81e 100644
--- a/src/printer_lyb.c
+++ b/src/printer_lyb.c
@@ -701,7 +701,7 @@
 
         if (value_len > UINT32_MAX) {
             LOGERR(lybctx->ctx, LY_EINT, "The maximum length of the LYB data "
-                    "from a term node must not exceed %lu.", UINT32_MAX);
+                    "from a term node must not exceed %" PRIu32 ".", UINT32_MAX);
             ret = LY_EINT;
             goto cleanup;
         }