]> git.ipfire.org Git - thirdparty/grub.git/commit
kern/mm: Use %x and cast for displaying sizeof()
authorVladimir Serbinenko <phcoder@gmail.com>
Fri, 25 Aug 2023 11:37:43 +0000 (13:37 +0200)
committerDaniel Kiper <daniel.kiper@oracle.com>
Wed, 13 Dec 2023 12:18:42 +0000 (13:18 +0100)
commit6d2aa7ee0158ad1218fe8ec4ba96fe04ff21486b
treea0d9d051322142943caaba9c18c8ad688acf5d5d
parentb3d49a697b1b177d59f50bc48f6ca269d46f5d92
kern/mm: Use %x and cast for displaying sizeof()

There is some variance in how compiler treats sizeof() especially
on 32-bit platforms where it can be naturally either int or long.
Explicit cast solves the issue.

Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/kern/mm.c