gpu: use %pd
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 7 Aug 2016 16:22:20 +0000 (12:22 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 8 Aug 2016 03:38:48 +0000 (23:38 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/gpu/drm/drm_debugfs.c
drivers/gpu/drm/msm/msm_perf.c
drivers/gpu/drm/msm/msm_rd.c

index fa10cef2ba37dff406a69b27067025ca77baa045..1205790ed960c755780e2efa32300ac775c15fa1 100644 (file)
@@ -104,8 +104,8 @@ int drm_debugfs_create_files(const struct drm_info_list *files, int count,
                ent = debugfs_create_file(files[i].name, S_IFREG | S_IRUGO,
                                          root, tmp, &drm_debugfs_fops);
                if (!ent) {
-                       DRM_ERROR("Cannot create /sys/kernel/debug/dri/%s/%s\n",
-                                 root->d_name.name, files[i].name);
+                       DRM_ERROR("Cannot create /sys/kernel/debug/dri/%pd/%s\n",
+                                 root, files[i].name);
                        kfree(tmp);
                        ret = -1;
                        goto fail;
index 17fe4e53e0d163dbb262bf0607ff832acdcea2dd..1627294575cb4da1bf8e353e0638a407679a3d7d 100644 (file)
@@ -229,8 +229,8 @@ int msm_perf_debugfs_init(struct drm_minor *minor)
        perf->ent = debugfs_create_file("perf", S_IFREG | S_IRUGO,
                        minor->debugfs_root, perf, &perf_debugfs_fops);
        if (!perf->ent) {
-               DRM_ERROR("Cannot create /sys/kernel/debug/dri/%s/perf\n",
-                               minor->debugfs_root->d_name.name);
+               DRM_ERROR("Cannot create /sys/kernel/debug/dri/%pd/perf\n",
+                               minor->debugfs_root);
                goto fail;
        }
 
index 3a5fdfcd67aeb7d29e315ff54a1eda27bf42372a..8487f461f05f32c8b62a0cb0f0a5785e3445da28 100644 (file)
@@ -243,8 +243,8 @@ int msm_rd_debugfs_init(struct drm_minor *minor)
        rd->ent = debugfs_create_file("rd", S_IFREG | S_IRUGO,
                        minor->debugfs_root, rd, &rd_debugfs_fops);
        if (!rd->ent) {
-               DRM_ERROR("Cannot create /sys/kernel/debug/dri/%s/rd\n",
-                               minor->debugfs_root->d_name.name);
+               DRM_ERROR("Cannot create /sys/kernel/debug/dri/%pd/rd\n",
+                               minor->debugfs_root);
                goto fail;
        }
 
This page took 0.026115 seconds and 5 git commands to generate.