From: Tomasz Figa Subject: [PATCH RFC 1/5] dtc: Add helpers for various message levels Date: Thu, 20 Feb 2014 19:06:47 +0100 Message-ID: <1392919611-10746-2-git-send-email-t.figa@samsung.com> References: <1392919611-10746-1-git-send-email-t.figa@samsung.com> Return-path: In-reply-to: <1392919611-10746-1-git-send-email-t.figa-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org> Sender: devicetree-compiler-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: devicetree-compiler-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Stephen Warren , Marek Szyprowski , grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org, bcousson-rdvid1DuHRBWk0Htik3J/w@public.gmane.org, olof-nZhT3qVonbNeoWH0uzbU5w@public.gmane.org, galak-sgV2jX0FEOL9JmXXK+q4OQ@public.gmane.org, mark.rutland-5wv7dgnIgG8@public.gmane.org, a.hajda-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org, pawel.moll-5wv7dgnIgG8@public.gmane.org, david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org, jdl-CYoMK+44s/E@public.gmane.org, Arnd Bergmann , jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org, Tomasz Figa This patch adds three helper macros to print errors, warnings and informational messages using standard format. Signed-off-by: Tomasz Figa --- 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-compiler" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html