Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932466AbcJGSq0 (ORCPT ); Fri, 7 Oct 2016 14:46:26 -0400 Received: from mail-db5eur01on0103.outbound.protection.outlook.com ([104.47.2.103]:62437 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932132AbcJGSqQ (ORCPT ); Fri, 7 Oct 2016 14:46:16 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=bhuvanchandra.dv@toradex.com; From: Bhuvanchandra DV To: , CC: , , , , , , , , , , Lothar Wassmann , Bhuvanchandra DV Subject: [PATCH v3 1/6] pwm: print error messages with pr_err() instead of pr_debug() Date: Fri, 7 Oct 2016 20:41:24 +0530 Message-ID: <20161007151129.6043-2-bhuvanchandra.dv@toradex.com> X-Mailer: git-send-email 2.10.0 In-Reply-To: <20161007151129.6043-1-bhuvanchandra.dv@toradex.com> References: <20161007151129.6043-1-bhuvanchandra.dv@toradex.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [115.115.243.34] X-ClientProxiedBy: BM1PR01CA0062.INDPRD01.PROD.OUTLOOK.COM (10.163.199.34) To VI1PR05MB1407.eurprd05.prod.outlook.com (10.162.125.156) X-MS-Office365-Filtering-Correlation-Id: 4c8a5eea-5f1c-4a73-46d4-08d3eec49749 X-Microsoft-Exchange-Diagnostics: 1;VI1PR05MB1407;2:cg/j0i2nxQAEJNo3alvj5l7nLRCtqjxm3pYTOOerIzNQPcqHXHLz8kymCz6mDITNUOLz/jaHDe2qvCvuAGydAPEJyiKWK4sab37Fdl7TLRkS5PknMExvZyvq+MUrgMVgqQwGBvrZ5I615+MVes7fU7ltykOTmH68o7Mar1m8EIHqVLenSi3cFp/PX26fOhSmpmq/FERv2yJUM2rY2CBn+w==;3:NjH/RCGLiiSNzTWaAfuDH+NPOrAPu2PoHti8R3FLVO9Q23Mf9cyD86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OsQy+Ifd0mQgAI8G6/wRIMhtTk1c/dZT9nzHD4KHJ7UB3DfV0gJ2H0It6ZqcWGDoneRnqx7QCVepBhEgoIg2vpSUsB1OhYdZaQb6JvBJhTWBbAGpcb8POBW+xQB2WNuVyjqARWq8x9SMzedmlq9OJjDWkf9rLZmcGf5XgnokMzsEspe7aWNlaErsVyyVavzAbo3Vl7Ty+Q==;20:WbIlnNEaVSwbUJs9m0MCMLt4jD9coAuDiiWPtkHyrqosOFzpQDb03rrHvw/sv0j7kieWe4DKOMdCrRpiHJUs5rjdWyz3fu77uQzKiZ9eBTIEopMpCo6GHM68F7b0V7y4dujFLiSfcCxAUKoYezL4z4uM3UTn20p9Jp+rF1V6ZLzKN/H/OAuOxQBE7mkfBiV0fgUW+NJLPTNJDokNKlAjDTdXsnaODWlBabee7JIuNXe0d3svcp+/hh2TpCiYs1toAJuEpNcWjGAYO+4B1AdAHnoxq42ykzvSZJaxUFvoZrTc9Iip9B0PUt9MJYraAsvOCa/UJjGHLrlF80POSa6U3A== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001);SRVR:VI1PR05MB1407;BCL:0;PCL:0;RULEID:;SRVR:VI1PR05MB1407; X-Microsoft-Exchange-Diagnostics: 1;VI1PR05MB1407;4:D6coeDUp8bXZZsHRfA5wUJ+2Yffmrox/HZnXVqBlCs7SkYArH+O4L3PwRAztxXRcyCqU5kxFvYvwv5Z7Q8jgCN4wOKk2BAR9cqxx8jEi4qcgz2eHhb8eT6XtBX3chfdA3bTFStzsEK2k8eJcveOrBadgMLRMZFnWpqGTvOCbcPtlouRg1IOI+LIraU/rgcw1y7EAQbhGXOLzu+nVOmVxlDX38S8ejY3xnkbhM2ND8KH0dg4IR0nDuckves+DpUJbjNato5cRfvqkh6Tgw2vQf0c8+Z3X5glYpokJDl3xRmbWu1NFpgEo6vYmRD45xiC2aJJks9EwcA2ggqMAdiPThJfJOpn3xyUTR39QHaYm1tZtCgz/LZcW3EmSWgjZgzjBoFuCWp890jmj/uGzwH0Q4g== X-Forefront-PRVS: 0088C92887 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(7916002)(199003)(189002)(4001430100002)(5001770100001)(97736004)(77096005)(68736007)(107886002)(86362001)(189998001)(4326007)(81166006)(81156014)(8676002)(36756003)(92566002)(2906002)(6116002)(50226002)(2870700001)(15650500001)(5820100001)(50466002)(69596002)(586003)(1076002)(3846002)(33646002)(76176999)(50986999)(101416001)(6666003)(2950100002)(47776003)(42186005)(66066001)(7416002)(8666005)(7736002)(305945005)(5660300001)(19580405001)(19580395003)(7846002)(53416004)(105586002)(229853001)(23676002)(106356001)(7059030);DIR:OUT;SFP:1102;SCL:1;SRVR:VI1PR05MB1407;H:tdx-in-nb-0014.toradex.int;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtWSTFQUjA1TUIxNDA3OzIzOk1tVWxCb0ZmUnpIcnJDL3RoMEhwZ3Bnb0pL?= =?utf-8?B?cjA5Yzl6Rk1iWEl5enJ4ZDYycWNka3Y1TnVzSUtvb1d0NE0xd3NENFRCRkNO?= =?utf-8?B?U1pib01JVGhTOHpoem5laWZpbUx5K1JXOGFXRCtoUXZHcTJ3aHF1RzFlTGpz?= =?utf-8?B?d2dNYzVTcCtISm1VUHFGRVpPZUpFV21BbWdhMFNPQjVEcW1xUGpGa25iM3ZS?= =?utf-8?B?ZHg5bXFSZEEvZGpaSksvdDg1RlZSMEZNam9zME5vMEh3VHRqM24zQkhxSGdZ?= =?utf-8?B?OTNmV3pvZ3IvZllxVkdGTlQ1UmkxVGlQV0NpeW5VcU5VQlc3eCtWclVNWEFv?= =?utf-8?B?ejFDdVVWRWVTaEM2aHVZeVZGb3VVdzdaNHluOXhrZDNleWc5NjlBZkc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rS0o6YAJ2HHspD9eJCf+dQ+wIhUN736zswnYSR0lPoDL3GGSc4=;24:5dRGbtmVSn5vYkrJzYm0sgk2ALwHl56gAYFDgGogWKegOnCitMjdW3Vaoc50fvkkf3APqS29XWUnG6mkbtlncnOq4jig+L2zHB3vecp62y4=;7:HS1XVyuNNqrXValPL814L4zE20jPNuLD+V0IiJZZeA5ItTKGIJxdVvrGnWU9LOmU3H0J2oEr4kHIURr9d/IGFtZBCskwDg5ddDH9N78QbDrG4cGVzy6LcWKdhY8wC9DAr+fhXAcCr5TuIfTUCx8v9VF2hNYoDSlGR1Y7rcai1azR87Xj4/GEdSGGu3+uuU20+AhKxSEXadTK9Nc9vIJGPfHdrWJ7UtTbMBfx3BuyOXs35m53OtoRLmD8D+Yw+ZqDLyB+Ms5/TYJUdBoZaqnW1H5Uj/DxlR1lUeD8B6mjykISL2a9ceNzVpt79Mk9FyYeu/ty2HU6s2lx/OcuXodBrg== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Oct 2016 15:14:08.5866 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB1407 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1094 Lines: 34 From: Lothar Wassmann Make the messages that are printed in case of fatal errors actually visible to the user without having to recompile the driver with debugging enabled. Signed-off-by: Lothar Waßmann Signed-off-by: Bhuvanchandra DV --- drivers/pwm/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c index 0dbd29e..195373e 100644 --- a/drivers/pwm/core.c +++ b/drivers/pwm/core.c @@ -661,13 +661,13 @@ struct pwm_device *of_pwm_get(struct device_node *np, const char *con_id) err = of_parse_phandle_with_args(np, "pwms", "#pwm-cells", index, &args); if (err) { - pr_debug("%s(): can't parse \"pwms\" property\n", __func__); + pr_err("%s(): can't parse \"pwms\" property\n", __func__); return ERR_PTR(err); } pc = of_node_to_pwmchip(args.np); if (IS_ERR(pc)) { - pr_debug("%s(): PWM chip not found\n", __func__); + pr_err("%s(): PWM chip not found\n", __func__); pwm = ERR_CAST(pc); goto put; } -- 2.10.0