From: Marcin Slusarz <marcin.slusarz@gmail.com>
To: David Airlie <airlied@redhat.com>
Cc: Daniel Yek <danieyek@alumni.washington.edu>,
dri-devel@lists.freedesktop.org
Subject: [PATCH 1/2] drm: fix error message about failed procfs file registration
Date: Mon, 10 Oct 2011 19:32:17 +0200 [thread overview]
Message-ID: <20111010173217.GA3294@joi.lan> (raw)
In-Reply-To: <c1b4b884-5304-46d0-81bd-5c9d6fcce941@zmail02.collab.prod.int.phx2.redhat.com>
It printed garbage.
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
---
drivers/gpu/drm/drm_proc.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/drm_proc.c b/drivers/gpu/drm/drm_proc.c
index 9e5b07e..0f3c4e3 100644
--- a/drivers/gpu/drm/drm_proc.c
+++ b/drivers/gpu/drm/drm_proc.c
@@ -95,7 +95,6 @@ int drm_proc_create_files(struct drm_info_list *files, int count,
struct drm_device *dev = minor->dev;
struct proc_dir_entry *ent;
struct drm_info_node *tmp;
- char name[64];
int i, ret;
for (i = 0; i < count; i++) {
@@ -118,7 +117,7 @@ int drm_proc_create_files(struct drm_info_list *files, int count,
&drm_proc_fops, tmp);
if (!ent) {
DRM_ERROR("Cannot create /proc/dri/%s/%s\n",
- name, files[i].name);
+ root->name, files[i].name);
list_del(&tmp->list);
kfree(tmp);
ret = -1;
--
1.7.6.1
next prev parent reply other threads:[~2011-10-10 17:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-09 18:38 [PATCH] drm: fix messages about failed procfs/debugfs file registration Marcin Slusarz
2011-10-10 8:00 ` Dave Airlie
2011-10-10 8:26 ` David Airlie
2011-10-10 17:32 ` Marcin Slusarz [this message]
2011-10-10 17:34 ` [PATCH 2/2] drm: simplify error printing in drm_debugfs_create_files Marcin Slusarz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20111010173217.GA3294@joi.lan \
--to=marcin.slusarz@gmail.com \
--cc=airlied@redhat.com \
--cc=danieyek@alumni.washington.edu \
--cc=dri-devel@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.