[PATCH 0/3] tools/mm/page-types: Fix misc bugs

Ye Liu posted 3 patches 1 month ago
tools/mm/page-types.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
[PATCH 0/3] tools/mm/page-types: Fix misc bugs
Posted by Ye Liu 1 month ago
From: Ye Liu <liuye@kylinos.cn>

This series fixes three issues in tools/mm/page-types.c:

1. Fix two typos in madvise() error messages ("madvice" -> "madvise")
2. Fix operator precedence bug in the sigbus handler where the ternary
   operator binds looser than addition, producing incorrect offset
   calculation when sigbus_addr is non-NULL
3. Fix --kpageflags option declaration in getopt_long: has_arg should
   be 1 (required_argument) since the option requires a file path

Ye Liu (3):
  tools/mm/page-types: Fix typo in madvise() error message
  tools/mm/page-types: Fix ternary operator precedence in sigbus handler
  tools/mm/page-types: Fix kpageflags option argument in getopt_long

 tools/mm/page-types.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

-- 
2.43.0