From ca80ea73486608197d48ad89a90034f77a2d3d0c Mon Sep 17 00:00:00 2001 From: "Isaac J. Manjarres" Date: Tue, 15 Oct 2019 13:30:14 -0700 Subject: [PATCH] ion: msm: Remove dentry_path() usage on heap debugfs file creation errors Knowing the path of which heap stats debugfs file was not created is not any more useful than simply knowing that the heap stats debugfs file could not be created for a specific heap. Thus, only print the name of the heap and debugfs file that could not be created. Change-Id: I177a49cdb5117996971cae626d65ef9cb75c83d8 Signed-off-by: Isaac J. Manjarres --- drivers/staging/android/ion/heaps/msm_ion.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/staging/android/ion/heaps/msm_ion.c b/drivers/staging/android/ion/heaps/msm_ion.c index 73451c032e1e..88036c45a8a7 100644 --- a/drivers/staging/android/ion/heaps/msm_ion.c +++ b/drivers/staging/android/ion/heaps/msm_ion.c @@ -121,7 +121,7 @@ static const struct file_operations msm_ion_debug_heap_fops = { static void msm_ion_debugfs_create_file(struct msm_ion_heap *msm_heap) { - char debug_name[64], buf[256]; + char debug_name[64]; struct dentry *debugfs_root; struct ion_heap *heap; @@ -132,8 +132,9 @@ static void msm_ion_debugfs_create_file(struct msm_ion_heap *msm_heap) scnprintf(debug_name, 64, "%s_stats", heap->name); if (!debugfs_create_file(debug_name, 0664, debugfs_root, msm_heap, &msm_ion_debug_heap_fops)) - pr_err("Failed to create heap debugfs at %s/%s\n", - dentry_path(debugfs_root, buf, 256), debug_name); + dev_err(msm_heap->dev, + "Failed to create %s debugfs entry\n", + debug_name); } }