printers CHANGE provide error information from ly_out constructors

Provide specific LY_ERR value to inform what failed when creating
ly_out structure.
diff --git a/src/printer_schema.c b/src/printer_schema.c
index df14f21..acd00a2 100644
--- a/src/printer_schema.c
+++ b/src/printer_schema.c
@@ -95,7 +95,7 @@
     /* init */
     *strp = NULL;
 
-    out = ly_out_new_memory(strp, 0);
+    LY_CHECK_RET(ly_out_new_memory(strp, 0, &out));
     return lys_print_(out, module, format, line_length, options);
 }
 
@@ -106,7 +106,7 @@
 
     LY_CHECK_ARG_RET(NULL, fd != -1, module, LY_EINVAL);
 
-    out = ly_out_new_fd(fd);
+    LY_CHECK_RET(ly_out_new_fd(fd, &out));
     return lys_print_(out, module, format, line_length, options);
 }
 
@@ -117,7 +117,7 @@
 
     LY_CHECK_ARG_RET(NULL, f, module, LY_EINVAL);
 
-    out = ly_out_new_file(f);
+    LY_CHECK_RET(ly_out_new_file(f, &out));
     return lys_print_(out, module, format, line_length, options);
 }
 
@@ -128,7 +128,7 @@
 
     LY_CHECK_ARG_RET(NULL, path, module, LY_EINVAL);
 
-    out = ly_out_new_filepath(path);
+    LY_CHECK_RET(ly_out_new_filepath(path, &out));
     return lys_print_(out, module, format, line_length, options);
 }
 
@@ -140,7 +140,7 @@
 
     LY_CHECK_ARG_RET(NULL, writeclb, module, LY_EINVAL);
 
-    out = ly_out_new_clb(writeclb, arg);
+    LY_CHECK_RET(ly_out_new_clb(writeclb, arg, &out));
     return lys_print_(out, module, format, line_length, options);
 }