Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1412535
| From | Joe Perches <joe@perches.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] of: use pr_fmt prefix for all console printing |
| Date | 2016-06-02 22:20 +0200 |
| Message-ID | <rFHfX-2eD-1@gated-at.bofh.it> (permalink) |
| References | <rFCzD-7xa-11@gated-at.bofh.it> <rFEL8-Ba-1@gated-at.bofh.it> <rFGWB-1T8-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, 2016-06-02 at 14:56 -0500, Rob Herring wrote:
> On Thu, Jun 2, 2016 at 12:33 PM, Frank Rowand <frowand.list@gmail.com> wrote:
[]
> > > @@ -355,8 +355,6 @@ int of_overlay_create(struct device_node *tree)
> > >
> > > id = idr_alloc(&ov_idr, ov, 0, 0, GFP_KERNEL);
> > > if (id < 0) {
> > > - pr_err("%s: idr_alloc() failed for tree@%s\n",
> > > - __func__, tree->full_name);
> > Every other error in of_overlay_create() results in a pr_err().
> > (The other cases of removing pr_err() in this file are fine, because
> > the errors are already reported in the functions called from this
> > function.)
> >
> > I would recommend leaving in the pr_err() for idr_alloc() failure.
> I was thinking idr_alloc is going to call kmalloc which will print
> errors on failure, but there may be some case it doesn't.
Only if __GFP_NOWARN is used.
And it's not used in any idr_alloc call.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] of: use pr_fmt prefix for all console printing Rob Herring <robh@kernel.org> - 2016-06-02 17:20 +0200
Re: [PATCH] of: use pr_fmt prefix for all console printing Frank Rowand <frowand.list@gmail.com> - 2016-06-02 19:40 +0200
Re: [PATCH] of: use pr_fmt prefix for all console printing Rob Herring <robh@kernel.org> - 2016-06-02 22:00 +0200
Re: [PATCH] of: use pr_fmt prefix for all console printing Joe Perches <joe@perches.com> - 2016-06-02 22:20 +0200
Re: [PATCH] of: use pr_fmt prefix for all console printing Frank Rowand <frowand.list@gmail.com> - 2016-06-02 23:50 +0200
csiph-web