log CHANGE make function for printing err items public
diff --git a/src/libyang.h.in b/src/libyang.h.in
index 0ea61b3..87026e0 100644
--- a/src/libyang.h.in
+++ b/src/libyang.h.in
@@ -1024,7 +1024,7 @@
* because unless you regularly clean them, the error list will grow indefinitely. With ly_err_last() you can retireve
* the latest error structure ly_err_item. Its attributes will correspond to the values returned by ly_errmsg(),
* ly_errpath(), ... This is actually a linked-list so you can get to previous errors using the **prev** pointer.
- * Being processed, you can then free them with ly_err_clean().
+ * Being processed (for instance printed with ly_err_print()), you can then free them with ly_err_clean().
*
* \note API for this group of functions is described in the [logger module](@ref logger).
*
@@ -1040,6 +1040,7 @@
* - ly_errpath()
* - ly_errapptag()
* - ly_err_last()
+ * - ly_err_print()
* - ly_err_clean()
*/
@@ -1991,6 +1992,13 @@
struct ly_err_item *ly_err_last(const struct ly_ctx *ctx);
/**
+ * @brief Print the error structure as if just generated.
+ *
+ * @param[in] eitem Error item structure to print.
+ */
+void ly_err_print(struct ly_err_item *eitem);
+
+/**
* @brief Free error structures from a context.
*
* If \p eitem is not set, free all the error structures.