2021-04-07 03:51:10

by Colin King

[permalink] [raw]
Subject: [PATCH][next] drm/msm: Fix spelling mistake "Purgable" -> "Purgeable"

From: Colin Ian King <[email protected]>

There is a spelling mistake in debugfs gem stats. Fix it. Also
re-align output to cater for the extra 1 character.

Signed-off-by: Colin Ian King <[email protected]>
---
drivers/gpu/drm/msm/msm_gem.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/gpu/drm/msm/msm_gem.c b/drivers/gpu/drm/msm/msm_gem.c
index f146d9c5ba9c..4e2e0a93d17d 100644
--- a/drivers/gpu/drm/msm/msm_gem.c
+++ b/drivers/gpu/drm/msm/msm_gem.c
@@ -979,13 +979,13 @@ void msm_gem_describe_objects(struct list_head *list, struct seq_file *m)
msm_gem_describe(obj, m, &stats);
}

- seq_printf(m, "Total: %4d objects, %9zu bytes\n",
+ seq_printf(m, "Total: %4d objects, %9zu bytes\n",
stats.all.count, stats.all.size);
- seq_printf(m, "Active: %4d objects, %9zu bytes\n",
+ seq_printf(m, "Active: %4d objects, %9zu bytes\n",
stats.active.count, stats.active.size);
- seq_printf(m, "Purgable: %4d objects, %9zu bytes\n",
+ seq_printf(m, "Purgeable: %4d objects, %9zu bytes\n",
stats.purgable.count, stats.purgable.size);
- seq_printf(m, "Purged: %4d objects, %9zu bytes\n",
+ seq_printf(m, "Purged: %4d objects, %9zu bytes\n",
stats.purged.count, stats.purged.size);
}
#endif
--
2.30.2


2021-04-07 06:45:51

by Rob Clark

[permalink] [raw]
Subject: Re: [PATCH][next] drm/msm: Fix spelling mistake "Purgable" -> "Purgeable"

On Tue, Apr 6, 2021 at 6:39 AM Colin King <[email protected]> wrote:
>
> From: Colin Ian King <[email protected]>
>
> There is a spelling mistake in debugfs gem stats. Fix it. Also
> re-align output to cater for the extra 1 character.
>
> Signed-off-by: Colin Ian King <[email protected]>
> ---
> drivers/gpu/drm/msm/msm_gem.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/gpu/drm/msm/msm_gem.c b/drivers/gpu/drm/msm/msm_gem.c
> index f146d9c5ba9c..4e2e0a93d17d 100644
> --- a/drivers/gpu/drm/msm/msm_gem.c
> +++ b/drivers/gpu/drm/msm/msm_gem.c
> @@ -979,13 +979,13 @@ void msm_gem_describe_objects(struct list_head *list, struct seq_file *m)
> msm_gem_describe(obj, m, &stats);
> }
>
> - seq_printf(m, "Total: %4d objects, %9zu bytes\n",
> + seq_printf(m, "Total: %4d objects, %9zu bytes\n",
> stats.all.count, stats.all.size);
> - seq_printf(m, "Active: %4d objects, %9zu bytes\n",
> + seq_printf(m, "Active: %4d objects, %9zu bytes\n",
> stats.active.count, stats.active.size);
> - seq_printf(m, "Purgable: %4d objects, %9zu bytes\n",
> + seq_printf(m, "Purgeable: %4d objects, %9zu bytes\n",
> stats.purgable.count, stats.purgable.size);

oh, whoops.. I spel gud..

Thanks, applied.. I'll follow-up with fixing the spelling in the code

BR,
-R

> - seq_printf(m, "Purged: %4d objects, %9zu bytes\n",
> + seq_printf(m, "Purged: %4d objects, %9zu bytes\n",
> stats.purged.count, stats.purged.size);
> }
> #endif
> --
> 2.30.2
>