internals FEATURE add LY_PRI_LENSTR() macro

Simplify providing printf's arguments for %.*s format string in case of
constant strings.
diff --git a/src/common.h b/src/common.h
index eb9ed7d..88e9013 100644
--- a/src/common.h
+++ b/src/common.h
@@ -454,6 +454,12 @@
  */
 #define ly_strlen_const(STR) (sizeof STR - 1)
 
+/**
+ * @brief Macro to simply put couple of string length and the string as
+ * printf's arguments for %.*s. Use only with constant strings.
+ */
+#define LY_PRI_LENSTR(STR) ly_strlen_const(STR), STR
+
 #define ly_sizeofarray(ARRAY) (sizeof ARRAY / sizeof *ARRAY)
 
 /*