All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/ttm: Fix spelling of "KiB"
@ 2019-02-28 16:48 Jakub Wilk
  2019-03-01 23:49 ` Alex Deucher
  0 siblings, 1 reply; 2+ messages in thread
From: Jakub Wilk @ 2019-02-28 16:48 UTC (permalink / raw)
  To: dri-devel; +Cc: Christian König

The symbol for binary prefix kibi is "Ki", with uppercase K.
(In contrast, the symbol for decimal kilo is lowercase "k".)

Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
---
 drivers/gpu/drm/ttm/ttm_memory.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/ttm/ttm_memory.c b/drivers/gpu/drm/ttm/ttm_memory.c
index f1567c353b54..53130cd9e935 100644
--- a/drivers/gpu/drm/ttm/ttm_memory.c
+++ b/drivers/gpu/drm/ttm/ttm_memory.c
@@ -81,7 +81,7 @@ static void ttm_mem_zone_kobj_release(struct kobject *kobj)
 	struct ttm_mem_zone *zone =
 		container_of(kobj, struct ttm_mem_zone, kobj);
 
-	pr_info("Zone %7s: Used memory at exit: %llu kiB\n",
+	pr_info("Zone %7s: Used memory at exit: %llu KiB\n",
 		zone->name, (unsigned long long)zone->used_mem >> 10);
 	kfree(zone);
 }
@@ -448,7 +448,7 @@ int ttm_mem_global_init(struct ttm_mem_global *glob)
 #endif
 	for (i = 0; i < glob->num_zones; ++i) {
 		zone = glob->zones[i];
-		pr_info("Zone %7s: Available graphics memory: %llu kiB\n",
+		pr_info("Zone %7s: Available graphics memory: %llu KiB\n",
 			zone->name, (unsigned long long)zone->max_mem >> 10);
 	}
 	ttm_page_alloc_init(glob, glob->zone_kernel->max_mem/(2*PAGE_SIZE));
-- 
2.20.1

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] drm/ttm: Fix spelling of "KiB"
  2019-02-28 16:48 [PATCH] drm/ttm: Fix spelling of "KiB" Jakub Wilk
@ 2019-03-01 23:49 ` Alex Deucher
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Deucher @ 2019-03-01 23:49 UTC (permalink / raw)
  To: Jakub Wilk; +Cc: Christian König, Maling list - DRI developers

On Fri, Mar 1, 2019 at 3:31 AM Jakub Wilk <jwilk@jwilk.net> wrote:
>
> The symbol for binary prefix kibi is "Ki", with uppercase K.
> (In contrast, the symbol for decimal kilo is lowercase "k".)
>
> Signed-off-by: Jakub Wilk <jwilk@jwilk.net>

Applied.  thanks!

Alex

> ---
>  drivers/gpu/drm/ttm/ttm_memory.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/ttm/ttm_memory.c b/drivers/gpu/drm/ttm/ttm_memory.c
> index f1567c353b54..53130cd9e935 100644
> --- a/drivers/gpu/drm/ttm/ttm_memory.c
> +++ b/drivers/gpu/drm/ttm/ttm_memory.c
> @@ -81,7 +81,7 @@ static void ttm_mem_zone_kobj_release(struct kobject *kobj)
>         struct ttm_mem_zone *zone =
>                 container_of(kobj, struct ttm_mem_zone, kobj);
>
> -       pr_info("Zone %7s: Used memory at exit: %llu kiB\n",
> +       pr_info("Zone %7s: Used memory at exit: %llu KiB\n",
>                 zone->name, (unsigned long long)zone->used_mem >> 10);
>         kfree(zone);
>  }
> @@ -448,7 +448,7 @@ int ttm_mem_global_init(struct ttm_mem_global *glob)
>  #endif
>         for (i = 0; i < glob->num_zones; ++i) {
>                 zone = glob->zones[i];
> -               pr_info("Zone %7s: Available graphics memory: %llu kiB\n",
> +               pr_info("Zone %7s: Available graphics memory: %llu KiB\n",
>                         zone->name, (unsigned long long)zone->max_mem >> 10);
>         }
>         ttm_page_alloc_init(glob, glob->zone_kernel->max_mem/(2*PAGE_SIZE));
> --
> 2.20.1
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-03-01 23:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-28 16:48 [PATCH] drm/ttm: Fix spelling of "KiB" Jakub Wilk
2019-03-01 23:49 ` Alex Deucher

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.