lkml.org 
[lkml]   [2012]   [Jul]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] pstore/ftrace: Convert to its own enable/disable debugfs knob
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.



\
 
 \ /
  Last update: 2012-07-18 20:41    [from the cache]
©2003-2011 Jasper Spaans