From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754773Ab2GRRMs (ORCPT ); Wed, 18 Jul 2012 13:12:48 -0400 Received: from wolverine02.qualcomm.com ([199.106.114.251]:17948 "EHLO wolverine02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754085Ab2GRRMp (ORCPT ); Wed, 18 Jul 2012 13:12:45 -0400 X-IronPort-AV: E=McAfee;i="5400,1158,6776"; a="209603958" Message-ID: <5006EE8C.20304@codeaurora.org> Date: Wed, 18 Jul 2012 10:12:44 -0700 From: Stephen Boyd User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: Anton Vorontsov CC: Steven Rostedt , Greg Kroah-Hartman , Kees Cook , Colin Cross , Tony Luck , Frederic Weisbecker , Ingo Molnar , Arnd Bergmann , John Stultz , Shuah Khan , arve@android.com, Rebecca Schultz Zavin , Jesper Juhl , Randy Dunlap , Thomas Meyer , Andrew Morton , Marco Stornelli , WANG Cong , linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org, linaro-kernel@lists.linaro.org, patches@linaro.org, kernel-team@android.com Subject: Re: [PATCH] pstore/ftrace: Convert to its own enable/disable debugfs knob References: <20120710001004.GA22744@lizard> <1341879046-5197-3-git-send-email-anton.vorontsov@linaro.org> <1342553898.10332.9.camel@gandalf.stny.rr.com> <20120717200130.GA31678@lizard> <1342561102.10332.18.camel@gandalf.stny.rr.com> <20120718034722.GA18081@lizard> In-Reply-To: <20120718034722.GA18081@lizard> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/17/12 20:47, Anton Vorontsov wrote: > + > + file = debugfs_create_file("record_ftrace", 0600, dir, NULL, > + &pstore_knob_fops); > + if (IS_ERR_OR_NULL(file)) { > + err = PTR_ERR(file); > + pr_err("%s: unable to create pstore/ftrace file: %d\n", > + __func__, err); > + goto err_file; > + } debugfs only returns NULL on failure. -- Sent by an employee of the Qualcomm Innovation Center, Inc. The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.