This patch adds three helper macros to print errors, warnings and informational messages using standard format. Signed-off-by: Tomasz Figa <t.figa@xxxxxxxxxxx> --- dtc.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dtc.h b/dtc.h index 20de073..e95bed7 100644 --- a/dtc.h +++ b/dtc.h @@ -43,6 +43,9 @@ #define debug(fmt,args...) #endif +#define pr_err(...) fprintf (stderr, "ERROR: " __VA_ARGS__) +#define pr_warn(...) fprintf (stderr, "WARNING: " __VA_ARGS__) +#define pr_info(...) fprintf (stderr, "INFO: " __VA_ARGS__) #define DEFAULT_FDT_VERSION 17 -- 1.8.5.2 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html