From patchwork Thu Feb 20 18:06:47 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Figa X-Patchwork-Id: 3689151 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 4D08C9F2EC for ; Thu, 20 Feb 2014 18:12:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7E1AA20145 for ; Thu, 20 Feb 2014 18:12:49 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A54A520131 for ; Thu, 20 Feb 2014 18:12:47 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WGY71-0001Op-CG; Thu, 20 Feb 2014 18:12:43 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WGY29-0007yw-7c; Thu, 20 Feb 2014 18:07:41 +0000 Received: from mailout2.w1.samsung.com ([210.118.77.12]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WGY24-0007xT-56 for linux-arm-kernel@lists.infradead.org; Thu, 20 Feb 2014 18:07:37 +0000 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N1B005KI3NVCX80@mailout2.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 20 Feb 2014 18:07:07 +0000 (GMT) X-AuditID: cbfec7f4-b7f796d000005a13-d2-5306444fbdbe Received: from eusync3.samsung.com ( [203.254.199.213]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 2F.A6.23059.F4446035; Thu, 20 Feb 2014 18:07:11 +0000 (GMT) Received: from AMDC1227.digital.local ([106.116.147.199]) by eusync3.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0N1B00D1E3NTAA00@eusync3.samsung.com>; Thu, 20 Feb 2014 18:07:11 +0000 (GMT) From: Tomasz Figa To: devicetree-compiler@vger.kernel.org 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> X-Mailer: git-send-email 1.8.5.2 In-reply-to: <1392919611-10746-1-git-send-email-t.figa@samsung.com> References: <1392919611-10746-1-git-send-email-t.figa@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrNLMWRmVeSWpSXmKPExsVy+t/xq7r+LmzBBm394ha31p1jtfg76Ri7 xZ35f1ktdh5qZbb4cHAbk8X8I0CJ/jcLWS1endnIZvF60kI2i+83TC02Pb7GarH2yF12i6XX LzJZnLr+mc1iwvS1LBavDraxWKyf8ZrFQdBjzbw1jB6/f01i9Hh/o5Xd43JfL5PHxAXv2Tw+ nz3I7rF5Sb3HlRNNrB7fd/QyevRtWcXo8fOljsfnTXIeG+eGBvBGcdmkpOZklqUW6dslcGXc eGZd8Jil4vSUGUwNjB+Zuxg5OSQETCR+PlzJAmGLSVy4t56ti5GLQ0hgKaPEsnsLWCCcPiaJ 4/NXsoFUsQmoSXxueARmiwioSzyYdoIJpIhZ4ASzxL0T78ESwgIuEo2ntrOC2CwCqhI3l/4A s3kFnCSW354IVMMBtE5BYvV1IZAwp4CzxNuPa5lAbCGgkt5Tz9gmMPIuYGRYxSiaWppcUJyU nmuoV5yYW1yal66XnJ+7iRESAV92MC4+ZnWIUYCDUYmHt0CCLViINbGsuDL3EKMEB7OSCG+T DVCINyWxsiq1KD++qDQntfgQIxMHp1QDo+qHdwtEL+v/4q2YeNNo3S2bmTXHZr15ohZz+9uK GiZzCfayKxtenn8T3P/v/km+Gbc0jt5YV1gn7iv0umx9mfJRO677912XZT8TYdrva+pkdsnr +pf978t2pzAWvaqcVmRyP6DKclfMz8qnc5/0CRc+91PIESn8tsG7nolVXkLY7dCz3WGJu5VY ijMSDbWYi4oTAeak3EdeAgAA X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140220_130736_296083_F06EDDA6 X-CRM114-Status: UNSURE ( 6.07 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -4.5 (----) Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, jdl@jdl.com, Arnd Bergmann , pawel.moll@arm.com, Stephen Warren , Tomasz Figa , jgunthorpe@obsidianresearch.com, grant.likely@secretlab.ca, a.hajda@samsung.com, bcousson@baylibre.com, galak@codeaurora.org, olof@lixom.net, david@gibson.dropbear.id.au, linux-arm-kernel@lists.infradead.org, Marek Szyprowski X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,KHOP_BIG_TO_CC, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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